aboutsummaryrefslogtreecommitdiffstats
path: root/services/openssh
diff options
context:
space:
mode:
authorene <ene@sils.li>2023-02-25 13:34:20 +0100
committerene <ene@sils.li>2023-02-25 13:37:15 +0100
commitc65cd1836c18d0acbb9d347fe45e0b288dced3ce (patch)
tree8d1e40b4c19fa637e39a0544f6a3fe811794f29c /services/openssh
parentFix(hosts): Fix the networkmanager for mammun (diff)
downloadnixos-config-c65cd1836c18d0acbb9d347fe45e0b288dced3ce.zip
Feat(system): Add openssh access
Diffstat (limited to 'services/openssh')
-rw-r--r--services/openssh/default.nix19
1 files changed, 19 insertions, 0 deletions
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;
+ };
+ };
+}