nix-community / impermanence

Modules to help you handle persistent state on systems with ephemeral root storage [maintainer=@talyz]
MIT License
1.03k stars 77 forks source link

nixos: Recommend persisting /var/lib/nixos #114

Closed mweinelt closed 1 year ago

mweinelt commented 1 year ago

The /var/lib/nixos directory contains the uid and gid map for entities without a static id. Not persisting them means your user and group ids could change between reboots, which is likely undesirable.

talyz commented 1 year ago

Thanks!

jackinloadup commented 1 year ago

Does this only affect systems with users.mutableUsers = true?

mweinelt commented 1 year ago

It's about users.users and users.groups entries without statically allocated uid/gid.