From cd2f2dda52c90e6f62e679a57f460fc74edaf19b Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Tue, 31 Dec 2024 17:53:31 +0400 Subject: [PATCH] fuck --- modules/server/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/server/default.nix b/modules/server/default.nix index 7836fc93..8fc8beba 100644 --- a/modules/server/default.nix +++ b/modules/server/default.nix @@ -15,7 +15,7 @@ in { openFirewall = true; settings = { # disable this NEVER enable it - PermitRootLogin = "no"; + # PermitRootLogin = "no"; # its so easy to use keys your grandmother could use it PasswordAuthentication = false; }; @@ -26,6 +26,11 @@ in { "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDjPSt4TykAJgafU9Trk7sr9wzXhBZxawDIZir0CPyDN sako@sakopc" ]; + users.users.root.openssh.authorizedKeys.keys = [ + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPGAwG2Fqs3xNF/6/9GdznH/jUIqxW3aTYvmteuq9odZ sako@sakotop" + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDjPSt4TykAJgafU9Trk7sr9wzXhBZxawDIZir0CPyDN sako@sakopc" + ]; + # anything can be a server, even a laptop # any say against this is a lie and propaganda services.logind.lidSwitch = "ignore";