about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2024-08-23 08:36:56 +0900
committersefidel <contact@sefidel.net>2024-08-23 08:36:56 +0900
commitc7ce5204f0b7a2d23feed66593704fae4e0606a5 (patch)
tree45145a9a68b5bd5eb9b1bbf4b218b862b3dc7426 /nixos
parentd34fcbbfb71cbbc5701bde4262d5924c9f6fc638 (diff)
downloadnixrc-c7ce5204f0b7a2d23feed66593704fae4e0606a5.tar.gz
nixrc-c7ce5204f0b7a2d23feed66593704fae4e0606a5.zip
fix(nixos): persist /var/lib/nixos
* fixes occasional permission errors
Diffstat (limited to 'nixos')
-rw-r--r--nixos/alpha/configuration.nix1
-rw-r--r--nixos/haruka/configuration.nix1
-rw-r--r--nixos/kanata/configuration.nix1
3 files changed, 3 insertions, 0 deletions
diff --git a/nixos/alpha/configuration.nix b/nixos/alpha/configuration.nix
index 69358c8..033438f 100644
--- a/nixos/alpha/configuration.nix
+++ b/nixos/alpha/configuration.nix
@@ -118,6 +118,7 @@
 
       directories = [
         "/etc/NetworkManager/system-connections"
+        "/var/lib/nixos"
         "/var/lib/bluetooth"
         "/var/lib/tailscale"
         "/var/lib/libvirt"
diff --git a/nixos/haruka/configuration.nix b/nixos/haruka/configuration.nix
index 1e51c00..89050f4 100644
--- a/nixos/haruka/configuration.nix
+++ b/nixos/haruka/configuration.nix
@@ -125,6 +125,7 @@
       directories = [
         "/etc/NetworkManager/system-connections"
         "/etc/cups"
+        "/var/lib/nixos"
         "/var/lib/fprint"
         "/var/lib/bluetooth"
         "/var/lib/tailscale"
diff --git a/nixos/kanata/configuration.nix b/nixos/kanata/configuration.nix
index 7c4e7b5..32e4cee 100644
--- a/nixos/kanata/configuration.nix
+++ b/nixos/kanata/configuration.nix
@@ -160,6 +160,7 @@ in
   networking.firewall.allowedTCPPorts = [ 80 443 ];
   modules = {
     persistence.directories = [
+      "/var/lib/nixos"
       "/var/lib/tailscale"
       "/var/lib/nixos-containers"
     ];