nix-community / impermanence

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

Add `force` option for replacing existing files #88

Open lheckemann opened 2 years ago

lheckemann commented 2 years ago

I wrote this in hopes that I could manage /etc/shadow with impermanence. Unfortunately, this does not play along with the rename-based atomic update mechanism applied by both passwd and nixos's update-users-groups.pl, so I don't have a good example to use in the documentation...

jedesroches commented 10 months ago

This would definitely be cool! An example application is tracking the /var/lib/systemd/timesync/clock file. Tracking the directory is a workaround, but I like being specific and this would help :)

KiaraGrouwstra commented 5 months ago

as others linked here might wonder as well, what might be alternatives for shadow (/ passwd)? perhaps as a bonus question: is there a way one might check if such a particular file should work with this, or fall into a similar category as those exceptions?