Skip to content

niri: "config.kdl".path is not a nix store path #515

@kraftnix

Description

@kraftnix

This may just be a problem with the docs which specify that config."config.kdl".path can be added to your path.

The path is generated from constructFiles.generatedConfig.path, but that provides a strange path not in the nix store /<hash/niri-config.kdl but a usable path is at constructFiles.generatedConfig.outPath.

i.e. to use the kdl file I used to use

# home-manager
xdg.configFile."niri/config.kdl".source = config.wrappers.niri."config.kdl".path;

but this causes an eval error in a flake for trying to use a path outside of the store, so now I use:

xdg.configFile."niri/config.kdl".source = config.wrappers.niri.constructFiles.generatedConfig.outPath;

which works fine.

Is this a documentation issue or user error?

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