about summary refs log tree commit diff stats
path: root/modules/system/services/openssh/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/system/services/openssh/default.nix')
-rw-r--r--modules/system/services/openssh/default.nix15
1 files changed, 15 insertions, 0 deletions
diff --git a/modules/system/services/openssh/default.nix b/modules/system/services/openssh/default.nix
new file mode 100644
index 00000000..b733dbe7
--- /dev/null
+++ b/modules/system/services/openssh/default.nix
@@ -0,0 +1,15 @@
+{...}: {
+  services.openssh = {
+    enable = true;
+    hostKeys = [
+      {
+        path = "/srv/sshd/ssh_host_ed25519_key";
+        rounds = 1000;
+        type = "ed25519";
+      }
+    ];
+    settings = {
+      PasswordAuthentication = false;
+    };
+  };
+}