nix-darwin
nix-darwin copied to clipboard
darwin-rebuild needs restart for some settings
Once I execute ./result/sw/bin/darwin-rebuild switch --flake .
I need to logout from MacOS because the mouse scrolling gesture is reset to the original and the two finger tap to double click doesn't work as well.
Anyone know how to just rebuild without needing to logout?
It needs a restart for every single setting for me. I have no idea what I'm doing wrong.
I need to reopen the terminal every time
@stringang It depends on what you are setting.
Anything that changes anything in your shell like environment/session Variables will require you to either source the shell initialisation files or more likely create a new shell - I can't see a workaround for this.
The other comments are more complex - defaults write command are not being recognises without more drastic action of logging off and then in. I suspect that this depends on what was changed some might work by killing or sending a less destructive signal to process e.g. killing the dock if you have changed things there. So it will depend on the exact default you have changed