diff --git a/template/flake.nix b/template/flake.nix index eb98357..7cff87b 100644 --- a/template/flake.nix +++ b/template/flake.nix @@ -64,7 +64,10 @@ boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; - services.openssh.enable = true; + services.openssh = { + enable = true; + settings.PasswordAuthentication = false; + }; users.users.root.openssh.authorizedKeys.keys = [ (builtins.readFile ./nitrokey.pub) ];