diff options
Diffstat (limited to 'hosts/phobos')
-rw-r--r-- | hosts/phobos/default.nix | 2 | ||||
-rw-r--r-- | hosts/phobos/hardware/laptop/default.nix | 4 | ||||
-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 |
4 files changed, 17 insertions, 3 deletions
diff --git a/hosts/phobos/default.nix b/hosts/phobos/default.nix index 5bdd524..5d4e4cc 100644 --- a/hosts/phobos/default.nix +++ b/hosts/phobos/default.nix @@ -1,8 +1,6 @@ { config, pkgs, lib, secrets, hostname, inputs, user, ... }: { imports = [ - ./hardware.nix - ../../modules/bluetooth ]; 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 |