From 8b44ddd56d704bf7895d291962fcb2f6a6bae4ad Mon Sep 17 00:00:00 2001 From: Felix Albrigtsen Date: Mon, 19 Feb 2024 15:55:42 +0100 Subject: [PATCH] base: add motd --- base.nix | 1 + hosts/buskerud/bikkje.nix | 8 ++++++-- motd => misc/motd | 0 3 files changed, 7 insertions(+), 2 deletions(-) rename motd => misc/motd (100%) diff --git a/base.nix b/base.nix index a11ee84..b6cc22a 100644 --- a/base.nix +++ b/base.nix @@ -73,6 +73,7 @@ # Trusted users on the nix builder machines users.groups."nix-builder-users".name = "nix-builder-users"; + users.motd = builtins.readFile ./misc/motd; services.openssh = { enable = true; diff --git a/hosts/buskerud/bikkje.nix b/hosts/buskerud/bikkje.nix index 9fd8d20..67f15b6 100644 --- a/hosts/buskerud/bikkje.nix +++ b/hosts/buskerud/bikkje.nix @@ -80,10 +80,14 @@ PubkeyAcceptedAlgorithms=+ssh-rsa ''; - settings.GatewayPorts = "yes"; - banner = builtins.readFile ../../motd; + settings = { + GatewayPorts = "yes"; + PermitRootLogin = "yes"; + }; }; + users.motd = builtins.readFile ../../misc/motd; + networking = { firewall.enable = true; # Use systemd-resolved inside the container diff --git a/motd b/misc/motd similarity index 100% rename from motd rename to misc/motd