From 43495a4961bfbd5f14993571f4cf34ce1f513931 Mon Sep 17 00:00:00 2001 From: Daiderd Jordan Date: Sun, 6 Nov 2016 23:53:08 +0100 Subject: added activation script for launchd.daemon.nix-daemon --- modules/launchd/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'modules/launchd') diff --git a/modules/launchd/default.nix b/modules/launchd/default.nix index a735c76..cb5e4d9 100644 --- a/modules/launchd/default.nix +++ b/modules/launchd/default.nix @@ -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' + ''; }; -- cgit v1.2.3