aboutsummaryrefslogtreecommitdiff
path: root/modules/services/nixos
diff options
context:
space:
mode:
Diffstat (limited to 'modules/services/nixos')
-rw-r--r--modules/services/nixos/ssh.nix9
1 files changed, 7 insertions, 2 deletions
diff --git a/modules/services/nixos/ssh.nix b/modules/services/nixos/ssh.nix
index 6db41bf..bf1aefe 100644
--- a/modules/services/nixos/ssh.nix
+++ b/modules/services/nixos/ssh.nix
@@ -1,5 +1,4 @@
{
- pkgs,
config,
lib,
...
@@ -9,8 +8,14 @@ in
lib.mkIf cfg.enable {
services.openssh = {
enable = true;
+ hostKeys = [
+ {
+ path = "/etc/ssh/ssh_host_ed25519_key";
+ type = "ed25519";
+ }
+ ];
settings = {
- PermitRootLogin = "no";
+ PermitRootLogin = "prohibit-password";
PasswordAuthentication = false;
};
};