mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-09-11 12:49:18 +03: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
@ -128,6 +128,9 @@ in
|
||||
|
||||
${concatStringsSep "\n" (launchdVariables config.launchd.user.envVariables)}
|
||||
|
||||
${optionalString (builtins.length userLaunchAgents > 0) ''
|
||||
mkdir -p ~/Library/LaunchAgents
|
||||
''}
|
||||
${concatMapStringsSep "\n" (attr: userLaunchdActivation attr.target) userLaunchAgents}
|
||||
|
||||
for f in $(ls /run/current-system/user/Library/LaunchAgents 2> /dev/null); do
|
||||
|
Loading…
Reference in New Issue
Block a user