about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2023-02-15 04:00:09 +0900
committersefidel <contact@sefidel.net>2023-02-15 04:00:09 +0900
commitcd6a020e874f7334fb06bb80b41fc5d0e5191ec4 (patch)
tree3cd9c90aa0395698e8ed3d179642c57d2cc6e3a5 /nixos
parent1366569062b78cd2e92484996af05c58b59aad48 (diff)
downloadnixrc-cd6a020e874f7334fb06bb80b41fc5d0e5191ec4.tar.gz
nixrc-cd6a020e874f7334fb06bb80b41fc5d0e5191ec4.zip
Revert "feat(nixos/alpha): use FHS dir for ssh"
This reverts commit 0140ef9d88b102455efcf6c9921cd4b35b588373.
Diffstat (limited to 'nixos')
-rw-r--r--nixos/alpha/configuration.nix13
-rw-r--r--nixos/default.nix1
2 files changed, 10 insertions, 4 deletions
diff --git a/nixos/alpha/configuration.nix b/nixos/alpha/configuration.nix
index 58477c0..3abc636 100644
--- a/nixos/alpha/configuration.nix
+++ b/nixos/alpha/configuration.nix
@@ -114,9 +114,16 @@
 
   services.openssh.enable = true;
   services.openssh.settings.passwordAuthentication = false;
-
-  environment.persistence."/persist".directories = [
-    "/etc/ssh"
+  services.openssh.hostKeys = [
+    {
+      path = "/persist/ssh/ssh_host_ed25519_key";
+      type = "ed25519";
+    }
+    {
+      path = "/persist/ssh/ssh_host_rsa_key";
+      type = "rsa";
+      bits = 4096;
+    }
   ];
 
   sound.enable = false;
diff --git a/nixos/default.nix b/nixos/default.nix
index 6618abc..c8af864 100644
--- a/nixos/default.nix
+++ b/nixos/default.nix
@@ -9,7 +9,6 @@
       ./modules/security.nix
       ./modules/cachix
       inputs.sops-nix.nixosModules.sops
-      inputs.impermanence.nixosModules.impermanence
     ];
   };