LnL7 / nix-darwin

nix modules for darwin
MIT License
2.82k stars 431 forks source link

darwin-rebuild needs restart for some settings #919

Open rmgpinto opened 6 months ago

rmgpinto commented 6 months ago

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?

calops commented 6 months ago

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

stringang commented 4 months ago

I need to reopen the terminal every time

bestlem commented 4 months ago

@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