diff --git a/modules/system/ssh/default.nix b/modules/system/ssh/default.nix index 1d64232..60f6995 100644 --- a/modules/system/ssh/default.nix +++ b/modules/system/ssh/default.nix @@ -10,10 +10,13 @@ in }; config = mkIf cfg.enable { - services.openssh.enable = true; - services.openssh.settings.X11forwarding = true; - services.openssh.settings.PermitRootLogin = "yes"; - + services.openssh = { + enable = true; + passwordAuthentication = false; + kbdInteractiveAuthentication = false; + settings.X11forwarding = true; + settings.PermitRootLogin = "yes"; + } environment.systemPackages = with pkgs; [ sshfs ]; }; } diff --git a/modules/user/jopejoe1/default.nix b/modules/user/jopejoe1/default.nix index 9051693..12612e1 100644 --- a/modules/user/jopejoe1/default.nix +++ b/modules/user/jopejoe1/default.nix @@ -15,11 +15,13 @@ in isNormalUser = true; description = "jopejoe1 🚫"; #initialPassword = "password"; - #openssh.authorizedKeys.keys = []; extraGroups = [ "wheel"] ++ lib.optionals config.custom.hardware.printing.enable [ "scanner" "lp"] ++ lib.optional config.networking.networkmanager.enable "networkmanger"; packages = with pkgs; [ git kate libsForQt5.ark element-desktop ]; + openssh.authorizedKeys.keys = [ + "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCUWMJyy2qq2aacVv/J5raugh7UKEmCs+JpagQh30mYqwLV9YQtOfZ+A3Q1qOOLPHTTciLydsfz8K2jBGXEv49uqz9P33aw63RzSaLdcnXhBJRmZvJ3AujLBKDIo24PLOVasogtu01eyQALTg4npX+qlti2UsxLY5O8E5paFJvJ+5rGE3/34c4xA9xthUm7G7SCSt4AhVXwPGB1tqz1KLqGdTJQhvy80laEDSV4tAYpiabmjhNFKGpf8T7afnw1MzKXz+ba6exBcGaJfy2Q24DLztZsW7fsTE1iCdkbcmos9/jUR6NooKFgDr0M4CL2TVZB5pECSiOev06GMnLt+vpxjFL29YeGMaVMmNCedkL1z1mftbXLEL7934kEK9FpEpSwzbRTJ7iPvfYZuTHiT6fi2Ep7n+zzRS+/ZgDUDLSqZYEBmE4dO4LgcqzOsJo5EgoyLGoqQ4OpvPRY12T3rCWUfEgOCXgToF0WlUyxCaPZCfvUjM4LXNlIy/dtivMxMs8= jopejoe1@yokai" + ]; }; }; }