home-environment: interactively inspect non-managed files#20
home-environment: interactively inspect non-managed files#20dermetfan wants to merge 1 commit intonix-community:masterfrom
Conversation
|
I'm a bit reluctant to add interactivity into the activation script. In particular I think we must keep the option of integrating Home Manager into the I can think of a few possible solutions:
I'm leaning towards 2 since it is more straight forward and leaves no risk of blocking. Option 2 also closely match how the gnome-terminal module works today, you can change your settings as much as you want but on the next activation they will revert back to the Home Manager ones. |
97f41e4 to
2b74fbd
Compare
|
I was also concerned with blocking. My first idea was that in a non-interactive shell |
Some programs overwrite their config files to save changes, such as XFE (X File Explorer). Instead of writing to the link target (which is read-only) it simply removes the link and writes its config. The next
home-manager switchthen complains about a collision even though the file is managed.This PR inserts an interactive inspection to the activation script. It allows the user to view and diff the file in question. If the user decides not to overwrite (the default), the activation is aborted.
For now I chose
less,diff, andexaaslswith some color, but those could be made configurable.