about summary refs log tree commit diff
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2023-02-15 04:02:09 +0900
committersefidel <contact@sefidel.net>2023-02-15 04:02:09 +0900
commitf8d602464b299533806e72986a846d2d8025482e (patch)
tree561b3a6e3dd3e996f49a8b8f8bae4427766b85bb
parentcd6a020e874f7334fb06bb80b41fc5d0e5191ec4 (diff)
downloadnixrc-f8d602464b299533806e72986a846d2d8025482e.tar.gz
nixrc-f8d602464b299533806e72986a846d2d8025482e.zip
feat(nixos/kompakt): use direct path for SSH
-rw-r--r--nixos/kompakt/configuration.nix12
1 files changed, 11 insertions, 1 deletions
diff --git a/nixos/kompakt/configuration.nix b/nixos/kompakt/configuration.nix
index 4d4c007..bc033f7 100644
--- a/nixos/kompakt/configuration.nix
+++ b/nixos/kompakt/configuration.nix
@@ -127,13 +127,23 @@
   };
 
   services.openssh.enable = true;
+  services.openssh.hostKeys = [
+    {
+      path = "/persist/ssh/ssh_host_ed25519_key";
+      type = "ed25519";
+    }
+    {
+      path = "/persist/ssh/ssh_host_rsa_key";
+      type = "rsa";
+      bits = 4096;
+    }
+  ];
 
   environment.systemPackages = with pkgs; [
     git
   ];
 
   environment.persistence."/persist".directories = [
-    "/etc/ssh"
     "/etc/nixos"
   ];