From 1db30285e1b09a425dc78ac6a4881d5a4e24648c Mon Sep 17 00:00:00 2001 From: sils Date: Sun, 19 Nov 2023 22:55:52 +0100 Subject: feat(sys/services): add openssh This is only needed for agenix. I'll probably remove that overhead in future. --- sys/services/openssh/default.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 sys/services/openssh/default.nix (limited to 'sys/services/openssh') diff --git a/sys/services/openssh/default.nix b/sys/services/openssh/default.nix new file mode 100644 index 0000000..7a96441 --- /dev/null +++ b/sys/services/openssh/default.nix @@ -0,0 +1,17 @@ +{...}: { + services.openssh = { + enable = true; + allowSFTP = false; + openFirewall = false; + settings = { + PermitRootLogin = "no"; + }; + hostKeys = [ + { + path = "/srv/var/lib/sshd/ssh_host_ed25519_key"; + rounds = 1000; + type = "ed25519"; + } + ]; + }; +} -- cgit 1.4.1