about summary refs log tree commit diff
path: root/hosts/phobos/hardware
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--hosts/phobos/hardware/laptop/default.nix4
-rw-r--r--hosts/phobos/hardware/laptop/disks.nix (renamed from hosts/phobos/disks.nix)14
-rw-r--r--hosts/phobos/hardware/laptop/hardware.nix (renamed from hosts/phobos/hardware.nix)0
3 files changed, 17 insertions, 1 deletions
diff --git a/hosts/phobos/hardware/laptop/default.nix b/hosts/phobos/hardware/laptop/default.nix
new file mode 100644
index 0000000..b0125ee
--- /dev/null
+++ b/hosts/phobos/hardware/laptop/default.nix
@@ -0,0 +1,4 @@
+{ ... }:
+{
+  imports = [ ./hardware.nix ];
+}
diff --git a/hosts/phobos/disks.nix b/hosts/phobos/hardware/laptop/disks.nix
index 2927fe5..07618df 100644
--- a/hosts/phobos/disks.nix
+++ b/hosts/phobos/hardware/laptop/disks.nix
@@ -1,5 +1,17 @@
 { config, lib, inputs, pkgs, modulesPath, isIso, ... }:
 {
+
+  environment.persistence."/persist" = {
+    directories = [
+      "/var/log"
+      "/var/lib"
+    ];
+    files = [
+      "/etc/machine-id"
+      "/etc/nix/id_rsa"
+    ];
+  };
+
   fileSystems."/" = {
     device = "none";
     fsType = "tmpfs";
@@ -33,7 +45,7 @@
 
   swapDevices = [ ];
 
-  services.btrfs.autoScrub.enable = if !isIso then true else false;
+  services.btrfs.autoScrub.enable = true;
 
   zramSwap.enable = true;
 
diff --git a/hosts/phobos/hardware.nix b/hosts/phobos/hardware/laptop/hardware.nix
index cbec828..cbec828 100644
--- a/hosts/phobos/hardware.nix
+++ b/hosts/phobos/hardware/laptop/hardware.nix