summary refs log tree commit diff stats
path: root/system/services/openssh
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2023-07-03 15:09:12 +0200
committerSoispha <soispha@vhack.eu>2023-07-03 15:09:12 +0200
commitbe4d0a4750d84f4ec2cba6375443263b7dddd2e3 (patch)
treed6073bf1461b2d9980b98db7e374d5bfba5aa72e /system/services/openssh
parentFeat(system/disks): Add disko with impermanence (diff)
downloadnixos-server-be4d0a4750d84f4ec2cba6375443263b7dddd2e3.tar.gz
nixos-server-be4d0a4750d84f4ec2cba6375443263b7dddd2e3.zip
Fix(system/services/openssh): Rename to 'openssh' as the 'd' is a typo
Diffstat (limited to 'system/services/openssh')
-rw-r--r--system/services/openssh/default.nix13
1 files changed, 13 insertions, 0 deletions
diff --git a/system/services/openssh/default.nix b/system/services/openssh/default.nix
new file mode 100644
index 0000000..1bb37ee
--- /dev/null
+++ b/system/services/openssh/default.nix
@@ -0,0 +1,13 @@
+{...}: {
+  services.openssh = {
+    enable = true;
+    settings.PasswordAuthentication = false;
+    hostKeys = [
+      {
+        path = "/srv/sshd/ssh_host_ed25519_key";
+        rounds = 1000;
+        type = "ed25519";
+      }
+    ];
+  };
+}