LnL7 / nix-darwin

nix modules for darwin
MIT License
3.19k stars 457 forks source link

Add hot reload workaround for skhd service #929

Closed alexandru0-dev closed 2 months ago

alexandru0-dev commented 7 months ago

Workaround for #333, until https://github.com/koekeishiya/skhd/issues/342 is solved.

Changes:

the logname pkg should be present in macos by default, tho I used pkgs.coreutils to ensure immutability (if for any reason the machine doesn't have the pkg etc).

More info here: https://github.com/LnL7/nix-darwin/issues/333#issuecomment-2049843403

Question about when the service changes:

I didn't check if the config is empty as someone can go from a config to an empty one. But at that point also the service in launchd changes.