Skip to content

mkOutOfStoreSymlink doesn't work as expected with a flake setup #2085

Description

@folke

Issue description

I'm currently migrating my dotfiles to Nix using nix-darwin and the home-manager module.

One problem I'm having is that mkOutOfStoreSymlink doesn't seem to work when using flakes.

In the example below, the .config/alacritty directory will link to the flake sources (/nix/store/54vrjl9afxg7ckb5waxy3w521f3mpi3j-hm_alacritty) instead of the original directory in my ~/projects/dot/config/alacritty.

 xdg.configFile."alacritty".source = config.lib.file.mkOutOfStoreSymlink ../../config/alacritty;

Is there any way to do what I want with the flake.nix setup?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions