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