Skip to content

Commit

Permalink
darwin installer: remove the file before installing new one
Browse files Browse the repository at this point in the history
Otherwise results into:

cp: /Library/LaunchDaemons/org.nixos.nix-daemon.plist and /nix/var/nix/profiles/default/Library/LaunchDaemons/org.nixos.nix-daemon.plist are identical (not copied).
  • Loading branch information
domenkozar committed Apr 24, 2020
1 parent c9d0cf7 commit b038a04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/install-darwin-multi-user.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ EOF

poly_configure_nix_daemon_service() {
_sudo "to set up the nix-daemon as a LaunchDaemon" \
cp -f "/nix/var/nix/profiles/default$PLIST_DEST" "$PLIST_DEST"
install -m 0664 "/nix/var/nix/profiles/default$PLIST_DEST" "$PLIST_DEST"

_sudo "to load the LaunchDaemon plist for nix-daemon" \
launchctl load /Library/LaunchDaemons/org.nixos.nix-daemon.plist
Expand Down

0 comments on commit b038a04

Please sign in to comment.