Skip to content

bubblewrap fails to mount gitconfig if it's a symlink #51

@happenslol

Description

@happenslol

I'm on nixos and I'm managing my dotfiles with home-manager, which includes my ~/.gitconfig. This leads to a peculiar problem:

$ fence curl https://example.com
bwrap: Can't create file at /home/happens/.gitconfig: No such file or directory

My gitconfig is a symlink into the nix store, which is stored on a separate drive at /nix. From what I understand, bubblewrap can't bind-mount symlinks that lead to other drives, which means I can't use fence unless I allow writing to my gitignore file.

The easiest solution here would be to just exclude symlinks there, but that has security implications, of course. The cleanest solution would (imho) be to resolve symlinks to their actual path and then mount that path to the original symlink location.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions