mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-12-14 11:57:34 +00:00
added activation script for launchd.daemon.nix-daemon
This commit is contained in:
parent
c137718ff7
commit
43495a4961
3 changed files with 6 additions and 2 deletions
|
@ -115,8 +115,11 @@ in {
|
|||
system.activationScripts.launchd.text = ''
|
||||
# Set up launchd services in /Library/LaunchAgents, /Library/LaunchDaemons and ~/Library/LaunchAgents
|
||||
echo "setting up launchd services..."
|
||||
echo "TODO"
|
||||
exit 2
|
||||
|
||||
launchctl unload '/Library/LaunchDaemons/${cfg.daemons.nix-daemon.serviceConfig.Label}.plist'
|
||||
ln -sfn '${cfg.daemons.nix-daemon.plist}' '/Library/LaunchDaemons/${cfg.daemons.nix-daemon.serviceConfig.Label}.plist'
|
||||
launchctl load '/Library/LaunchDaemons/${cfg.daemons.nix-daemon.serviceConfig.Label}.plist'
|
||||
|
||||
'';
|
||||
|
||||
};
|
||||
|
|
Binary file not shown.
|
@ -55,6 +55,7 @@ in
|
|||
ln -sfn /run/current-system /nix/var/nix/gcroots/current-system
|
||||
|
||||
${cfg.activationScripts.etc.text}
|
||||
${cfg.activationScripts.launchd.text}
|
||||
|
||||
exit $_status
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue