1
0
Fork 0
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:
Daiderd Jordan 2016-11-06 23:53:08 +01:00
parent c137718ff7
commit 43495a4961
No known key found for this signature in database
GPG key ID: D02435D05B810C96
3 changed files with 6 additions and 2 deletions

View file

@ -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.

View file

@ -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
'';