From c7ce5204f0b7a2d23feed66593704fae4e0606a5 Mon Sep 17 00:00:00 2001 From: sefidel Date: Fri, 23 Aug 2024 08:36:56 +0900 Subject: fix(nixos): persist /var/lib/nixos * fixes occasional permission errors --- nixos/alpha/configuration.nix | 1 + nixos/haruka/configuration.nix | 1 + nixos/kanata/configuration.nix | 1 + 3 files changed, 3 insertions(+) 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" ]; -- cgit 1.4.1