diff options
Diffstat (limited to '')
| -rw-r--r-- | sys/boot/impermanence.nix | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/sys/boot/impermanence.nix b/sys/boot/impermanence.nix index 09aee09..5c7e46b 100644 --- a/sys/boot/impermanence.nix +++ b/sys/boot/impermanence.nix @@ -33,10 +33,18 @@ in { "/var/log" ]; - files = [ - "/etc/machine-id" - "/var/lib/logrotate.status" - ]; + files = + [ + "/etc/machine-id" + "/var/lib/logrotate.status" + ] + ++ optionals config.users.mutableUsers [ + "/etc/group" + "/etc/passwd" + "/etc/shadow" + "/etc/subuid" + "/etc/subgid" + ]; }; } (mkIf cfg.enable { |
