about summary refs log tree commit diff
path: root/systems/cobalt/default.nix
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2024-01-11 14:39:13 +0900
committersefidel <contact@sefidel.net>2024-01-12 00:18:45 +0900
commita0e13034700e6a697c1adac3050702a1d3ba0ecd (patch)
tree548dbde56bfaa84b0d9686effd2941810fa06fd9 /systems/cobalt/default.nix
parenta670d5289903cd6236c3203fb1283f4e664e604c (diff)
downloadinfra-a0e13034700e6a697c1adac3050702a1d3ba0ecd.tar.gz
infra-a0e13034700e6a697c1adac3050702a1d3ba0ecd.zip
feat(modules)!: init persistence
Diffstat (limited to 'systems/cobalt/default.nix')
-rw-r--r--systems/cobalt/default.nix19
1 files changed, 4 insertions, 15 deletions
diff --git a/systems/cobalt/default.nix b/systems/cobalt/default.nix
index 238cb28..16e7c37 100644
--- a/systems/cobalt/default.nix
+++ b/systems/cobalt/default.nix
@@ -133,21 +133,6 @@ in
   services.openssh.enable = true;
   services.openssh.settings.PermitRootLogin = "prohibit-password";
 
-  services.openssh.hostKeys = [
-    {
-      path = "/persist/ssh/ssh_host_ed25519_key";
-      type = "ed25519";
-    }
-    {
-      path = "/persist/ssh/ssh_host_rsa_key";
-      type = "rsa";
-      bits = 4096;
-    }
-  ];
-
-  # impermanence requirement
-  fileSystems."/persist".neededForBoot = true;
-
   environment.systemPackages = with pkgs; [
     bsd-finger
   ];
@@ -176,6 +161,10 @@ in
 
   modules = {
     sops.enable = true;
+    persistence = {
+      enable = true;
+      storagePath = "/persist";
+    };
 
     services.backup = {
       enable = true;