mirror of
https://github.com/NixOS/nix
synced 2025-07-06 21:41:48 +02:00
Use KeepAlive.PathState instead of wait4path.
This allows the spawning program to be the nix-daemon instead of /bin/sh. That means that the Full Disk Access permission can be only for the nix-daemon.
This commit is contained in:
parent
1a9bfdc4ca
commit
5d959b33c5
1 changed files with 8 additions and 4 deletions
|
@ -12,14 +12,18 @@
|
|||
<key>Label</key>
|
||||
<string>org.nixos.nix-daemon</string>
|
||||
<key>KeepAlive</key>
|
||||
<true/>
|
||||
<dict>
|
||||
<key>PathState</key>
|
||||
<dict>
|
||||
<key>/nix/var/nix/profiles/default/bin/nix-daemon</key>
|
||||
<true/>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>RunAtLoad</key>
|
||||
<true/>
|
||||
<key>ProgramArguments</key>
|
||||
<array>
|
||||
<string>/bin/sh</string>
|
||||
<string>-c</string>
|
||||
<string>/bin/wait4path /nix/var/nix/profiles/default/bin/nix-daemon && exec /nix/var/nix/profiles/default/bin/nix-daemon</string>
|
||||
<string>/nix/var/nix/profiles/default/bin/nix-daemon</string>
|
||||
</array>
|
||||
<key>StandardErrorPath</key>
|
||||
<string>/var/log/nix-daemon.log</string>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue