mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-16 13:28:16 +00:00
launchd: ensure user LaunchAgents exist
Apparently this doesn't exist by default, so make sure it's created first. Fixes #134
This commit is contained in:
parent
13f2480374
commit
b68f77b404
1 changed files with 3 additions and 0 deletions
|
@ -128,6 +128,9 @@ in
|
||||||
|
|
||||||
${concatStringsSep "\n" (launchdVariables config.launchd.user.envVariables)}
|
${concatStringsSep "\n" (launchdVariables config.launchd.user.envVariables)}
|
||||||
|
|
||||||
|
${optionalString (builtins.length userLaunchAgents > 0) ''
|
||||||
|
mkdir -p ~/Library/LaunchAgents
|
||||||
|
''}
|
||||||
${concatMapStringsSep "\n" (attr: userLaunchdActivation attr.target) userLaunchAgents}
|
${concatMapStringsSep "\n" (attr: userLaunchdActivation attr.target) userLaunchAgents}
|
||||||
|
|
||||||
for f in $(ls /run/current-system/user/Library/LaunchAgents 2> /dev/null); do
|
for f in $(ls /run/current-system/user/Library/LaunchAgents 2> /dev/null); do
|
||||||
|
|
Loading…
Add table
Reference in a new issue