Skip to content

Fix guest Nix flake failures in Git repos on the host filesystem#125

Open
midchildan wants to merge 1 commit intoMic92:mainfrom
midchildan:fix/nix-on-host-git-repos
Open

Fix guest Nix flake failures in Git repos on the host filesystem#125
midchildan wants to merge 1 commit intoMic92:mainfrom
midchildan:fix/nix-on-host-git-repos

Conversation

@midchildan
Copy link

Inside the guest, Nix operations fail on flakes in Git repositories located on the host filesystem due to differing UIDs. The changes in this PR fixes this.

Before:

# nix build .#legacyPackages.aarch64-linux.hello
error:
       … while fetching the input 'git+file:///Users/midchildan/Documents/src/repos/github.com/NixOS/nixpkgs'

       error: opening Git repository "/Users/midchildan/Documents/src/repos/github.com/NixOS/nixpkgs": repository path '/Users/midchildan/Documents/src/repos/github.com/NixOS/nixpkgs' is not owned by current user

After:

# nix build .#legacyPackages.aarch64-linux.hello
# result/bin/hello
Hello, world!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant