Open arianvp opened 5 months ago
I guess this is because we don't migrate the old /etc
on switch. This is a nasty deficiency. IDK if we can fix it though
I guess this is because we don't migrate the old
/etc
on switch. This is a nasty deficiency. IDK if we can fix it though
Can I take manual steps to workaround this? Is there a script that copies all relevant files somewhere, so they get included in the overlay?
I could workaround the loss of /etc/shadow
by setting users.extraUsers.*.hashedPasswordFile
(encrypted e.g. with https://github.com/Mic92/sops-nix) and that would generate a new shadow
file that'll be included in the overlay, right?
Describe the bug
enabling system.etc.overlay = true throws away everything in /etc like /etc/ssh/known_hosts and /etc/shadow. Locking you out
Steps To Reproduce
Steps to reproduce the behavior:
system.etc.overlay.enable = true
get
Expected behavior
Old content from
/etc/
is migrated to/.rw-etc
on switchScreenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
Notify maintainers
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.Add a :+1: reaction to issues you find important.