dustinlyons / nixos-config

General purpose Nix configuration for macOS / NixOS with starter templates + step-by-step guides ✨
BSD 3-Clause "New" or "Revised" License
1.79k stars 113 forks source link

this creates duplicate `sh` entries in login items #112

Closed gjolund closed 1 month ago

gjolund commented 2 months ago

After setting up this repo I noticed several duplicate entries for a sh login item.

They seem to be related to nix-darwin or this repo config, I am not sure which.

Disabling them causes a prompt for the nix password to show, so I imagine it accesses the keychain to unlock the nix partition?

~ ❯ ls /Library/LaunchAgents
org.gpgtools.Libmacgpg.xpc.plist  org.gpgtools.macgpg2.shutdown-gpg-agent.plist
org.gpgtools.macgpg2.fix.plist    org.gpgtools.updater.plist

~ ❯ ls /Library/LaunchDaemons
com.docker.socket.plist
com.docker.vmnetd.plist
com.nordvpn.macos.helper.plist
org.nixos.activate-system.plist
org.nixos.darwin-store.plist
org.nixos.nix-daemon.plist
org.nixos.nix-gc.plist
systems.determinate.nix-installer.nix-hook.plist
Screenshot 2024-09-09 at 10 30 48 PM Screenshot 2024-09-09 at 10 37 57 PM Screenshot 2024-09-09 at 10 40 48 PM
gjolund commented 2 months ago

I have identified 5 of these items as coming from nix-darwin, but there is a 6th item that is unaccounted for.

When you get a chance can you take a look at your login items and let me know how many sh entries you have?

https://github.com/LnL7/nix-darwin/issues/871

dustinlyons commented 2 months ago

@gjolund I have 5.

Screenshot 2024-09-13 at 3 51 03 PM

gjolund commented 2 months ago

ok great, so I have a unaccounted for 6th shell script in my launch items.

dustinlyons commented 1 month ago

Hi @gjolund, closing this if no further questions.