about summary refs log tree commit diff
path: root/nixos/kanata
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2024-08-04 13:07:25 +0900
committersefidel <contact@sefidel.net>2024-08-04 13:07:25 +0900
commit921b55e2def597b8e13f9626c2dd9ec663dcfc86 (patch)
tree535c0a89db8281fe169c98606623bfcec6142589 /nixos/kanata
parent8119a7df09d35760389cdb631347548511d7f72c (diff)
downloadnixrc-921b55e2def597b8e13f9626c2dd9ec663dcfc86.tar.gz
nixrc-921b55e2def597b8e13f9626c2dd9ec663dcfc86.zip
feat(nixos/kanata): enable setupSshHostKeys
Diffstat (limited to 'nixos/kanata')
-rw-r--r--nixos/kanata/configuration.nix17
1 files changed, 1 insertions, 16 deletions
diff --git a/nixos/kanata/configuration.nix b/nixos/kanata/configuration.nix
index e1627fb..a053838 100644
--- a/nixos/kanata/configuration.nix
+++ b/nixos/kanata/configuration.nix
@@ -70,22 +70,6 @@ in
   services.openssh.enable = true;
   users.users.root.openssh.authorizedKeys.keys = maintainerKeys;
 
-  # NOTE: managed by modules.persistence
-  # TODO: remove?
-  # fileSystems."/persist".neededForBoot = true;
-  #
-  # services.openssh.hostKeys = [
-  #   {
-  #     path = "/persist/ssh/ssh_host_ed25519_key";
-  #     type = "ed25519";
-  #   }
-  #   {
-  #     path = "/persist/ssh/ssh_host_rsa_key";
-  #     type = "rsa";
-  #     bits = 4096;
-  #   }
-  # ];
-
   sops.defaultSopsFile = ./secrets/secrets.yaml;
 
   powerManagement.cpuFreqGovernor = "ondemand";
@@ -143,6 +127,7 @@ in
     persistence = {
       enable = true;
       storagePath = "/persist";
+      setupSshHostKeys = true;
     };
 
     # NOTE: This module only populates route entries,