Skip to content

Launchctl bootstrap failed on darwin with I/O error #910

@jackschu

Description

@jackschu

When setting up sops-nix for the first time on nixos-darwin. I get the following log output:

Starting Home Manager activation
Activating checkAppManagementPermission
Activating checkFilesChanged
Activating checkLinkTargets
Activating writeBoundary
Activating installPackages
replacing old 'home-manager-path'
installing 'home-manager-path'
Activating copyApps
setting up ~/Applications/Home Manager Apps...
Activating createGpgHomedir
Activating linkGeneration
Cleaning up orphan links from /Users/jackschumann
Creating home file links in /Users/jackschumann
Activating generateAgeKey
Activating sops-nix
Boot-out failed: 3: No such process
Bootstrap failed: 5: Input/output error
Try re-running the command as root for richer errors.

Im able to work around this by setting the activation phase to come later

 home.activation.sops-nix = lib.mkForce (lib.hm.dag.entryAfter [ "linkGeneration" ] "");

Once this is worked around
a ~/Library/LaunchAgents/org.nix-community.home.sops-nix.plist exists and the work-around is not needed, making this a little hard to repro.

To repro rm that file and run a home-manager switch.

In case its relevant:

❯ nix --version
nix (Nix) 2.31.2+1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions