nix-darwin icon indicating copy to clipboard operation
nix-darwin copied to clipboard

darwin-rebuild needs restart for some settings

Open rmgpinto opened this issue 4 months ago • 3 comments

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?

rmgpinto avatar Mar 27 '24 15:03 rmgpinto

It needs a restart for every single setting for me. I have no idea what I'm doing wrong.

calops avatar Apr 03 '24 09:04 calops

I need to reopen the terminal every time

stringang avatar May 05 '24 06:05 stringang

@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

bestlem avatar May 05 '24 09:05 bestlem