From e5f9d43d3e4e5fc0ab4c78b48ddc5951bc6876d7 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Wed, 21 Aug 2024 15:31:02 +0200 Subject: fix(system/impermanence): Persist `/var/lib/nixos` Otherwise, users without an explicit uid/gid will get a new one assigned at each reboot (potentially changing file ownership from one user to another one). --- modules/system/impermanence/default.nix | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modules/system') diff --git a/modules/system/impermanence/default.nix b/modules/system/impermanence/default.nix index dca30083..9730dde6 100644 --- a/modules/system/impermanence/default.nix +++ b/modules/system/impermanence/default.nix @@ -15,6 +15,7 @@ in { "/etc/nixos" "/var/log" "/var/lib/systemd" + "/var/lib/nixos" ] ++ lib.optional config.networking.networkmanager.enable "/etc/NetworkManager" ++ lib.optional config.boot.lanzaboote.enable "/etc/secureboot" @@ -27,6 +28,7 @@ in { "/etc/nixos" "/var/log" "/var/lib/systemd" + "/var/lib/nixos" ] ++ lib.optional config.networking.networkmanager.enable "/etc/NetworkManager" ++ lib.optional config.boot.lanzaboote.enable "/etc/secureboot" -- cgit 1.4.1