about summary refs log tree commit diff
path: root/hosts
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2022-08-21 00:23:09 +0200
committerBaitinq <manuelpalenzuelamerino@gmail.com>2022-08-21 01:28:11 +0200
commitaa94424db16cd977c3ffc2c2f7223839f4d206b5 (patch)
tree097cdb97e1e13878b2eec7d76dcd1c4c86421c62 /hosts
parentRemove default packages (diff)
downloadnixos-config-aa94424db16cd977c3ffc2c2f7223839f4d206b5.tar.gz
nixos-config-aa94424db16cd977c3ffc2c2f7223839f4d206b5.tar.bz2
nixos-config-aa94424db16cd977c3ffc2c2f7223839f4d206b5.zip
Set non persistance as the default
Diffstat (limited to 'hosts')
-rw-r--r--hosts/configuration.nix13
-rw-r--r--hosts/luna/default.nix13
-rw-r--r--hosts/phobos/default.nix13
3 files changed, 13 insertions, 26 deletions
diff --git a/hosts/configuration.nix b/hosts/configuration.nix
index 9862007..84cb8f8 100644
--- a/hosts/configuration.nix
+++ b/hosts/configuration.nix
@@ -1,6 +1,8 @@
 { secrets, lib, pkgs, config, hostname, inputs, user, timezone, ... }: {
 
   imports = [
+    "${inputs.impermanence}/nixos.nix"
+
     ../modules/doas
     ../modules/pipewire
     ../modules/xorg
@@ -140,6 +142,17 @@
     };
   };
 
+  environment.persistence."/persist" = {
+    directories = [
+      "/var/log"
+      "/var/lib"
+    ];
+    files = [
+      "/etc/machine-id"
+      "/etc/nix/id_rsa"
+    ];
+  };
+
   nix = {
     settings.auto-optimise-store = true;
     gc = {
diff --git a/hosts/luna/default.nix b/hosts/luna/default.nix
index b2cf07b..f70c975 100644
--- a/hosts/luna/default.nix
+++ b/hosts/luna/default.nix
@@ -1,8 +1,6 @@
 { config, pkgs, lib, secrets, hostname, inputs, user, ... }: {
 
   imports = [
-    "${inputs.impermanence}/nixos.nix"
-
     ./hardware.nix
 
     ../../modules/power-save
@@ -35,17 +33,6 @@
     xf86_input_cmt #chromebook touchpad drivers
   ];
 
-  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;
 
 }
diff --git a/hosts/phobos/default.nix b/hosts/phobos/default.nix
index c31d832..5bdd524 100644
--- a/hosts/phobos/default.nix
+++ b/hosts/phobos/default.nix
@@ -1,8 +1,6 @@
 { config, pkgs, lib, secrets, hostname, inputs, user, ... }: {
 
   imports = [
-    "${inputs.impermanence}/nixos.nix"
-
     ./hardware.nix
 
     ../../modules/bluetooth
@@ -37,17 +35,6 @@
     '';
   */
 
-  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;
 
 }