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?
This may just be a problem with the docs which specify that
config."config.kdl".pathcan be added to your path.The
pathis generated fromconstructFiles.generatedConfig.path, but that provides a strange path not in the nix store/<hash/niri-config.kdlbut a usable path is atconstructFiles.generatedConfig.outPath.i.e. to use the kdl file I used to use
but this causes an eval error in a flake for trying to use a path outside of the store, so now I use:
which works fine.
Is this a documentation issue or user error?