From c65cd1836c18d0acbb9d347fe45e0b288dced3ce Mon Sep 17 00:00:00 2001 From: ene Date: Sat, 25 Feb 2023 13:34:20 +0100 Subject: Feat(system): Add openssh access --- services/openssh/default.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 services/openssh/default.nix (limited to 'services/openssh/default.nix') diff --git a/services/openssh/default.nix b/services/openssh/default.nix new file mode 100644 index 00000000..5ee48a0c --- /dev/null +++ b/services/openssh/default.nix @@ -0,0 +1,19 @@ +{ + config, + pkg, + ... +}: { + services.openssh = { + enable = true; + hostKeys = [ + { + path = "/srv/sshd/ssh_host_ed25519_key"; + rounds = 1000; + type = "ed25519"; + } + ]; + settings = { + PasswordAuthentication = false; + }; + }; +} -- cgit 1.4.1