about summary refs log tree commit diff
path: root/hosts/phobos/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/phobos/default.nix')
-rw-r--r--hosts/phobos/default.nix13
1 files changed, 13 insertions, 0 deletions
diff --git a/hosts/phobos/default.nix b/hosts/phobos/default.nix
index 5bdd524..c31d832 100644
--- a/hosts/phobos/default.nix
+++ b/hosts/phobos/default.nix
@@ -1,6 +1,8 @@
 { config, pkgs, lib, secrets, hostname, inputs, user, ... }: {
 
   imports = [
+    "${inputs.impermanence}/nixos.nix"
+
     ./hardware.nix
 
     ../../modules/bluetooth
@@ -35,6 +37,17 @@
     '';
   */
 
+  environment.persistence."/persist" = {
+    directories = [
+      "/var/log"
+      "/var/lib"
+    ];
+    files = [
+      "/etc/machine-id"
+      "/etc/nix/id_rsa"
+    ];
+  };
+
   environment.etc."nix-index/files".source = inputs.nix-index.legacyPackages.x86_64-linux.database;
 
 }