From 27b9a6c48b74f192fcebeab67402163dd2f70a95 Mon Sep 17 00:00:00 2001 From: Nettika Date: Fri, 12 Jul 2024 13:03:56 -0700 Subject: [PATCH] Configure SSH service on monolith --- monolith/default.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/monolith/default.nix b/monolith/default.nix index eabd951..ca3edb2 100644 --- a/monolith/default.nix +++ b/monolith/default.nix @@ -29,6 +29,9 @@ nettika = { isNormalUser = true; extraGroups = [ "wheel" "networkmanager" ]; + openssh.authorizedKeys.keys = [ + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHopty1QG8P+OfGxQ9CV0BI1IRB/q6yITzMZaZ6Zspid nettika" + ]; }; }; @@ -55,7 +58,11 @@ ''; }; - services.openssh.enable = true; + services.openssh = { + enable = true; + settings.PasswordAuthentication = false; + permitRootLogin = "yes"; + }; time.timeZone = "America/Los_Angeles";