I am having an error with editing a HM module that I can’t figure out myself.
In NixOS, starship has a configuration option packages.starship.presets
where the provided toml files in the share directory of the package gets merged with the configuration defined in packages.starship.settings
. However, in home-manager, this option is missing.
I figured I’ll just add fork hm and add the same features to the module. I also wrote a test for the edited module that tests the generated config against a known preset.
The problem is, the nix develop --ignore-environment .#all
is failing with the following command;
error: builder for '/nix/store/8xscgh6q2dfid5p33283j19j10hfhl25-starship-hm-config.drv' failed with exit code 2;
last 3 log lines:
> usage: tomlq [-h] [--toml-output] [--in-place] [--version]
> [jq_filter] [files ...]
> tomlq: error: argument files: can't open '@starship@/share/starship/presets/no-nerd-font.toml': [Errno 2] No such file or directory: '@starship@/share/starship/presets/no-nerd-font.toml'
Which is weird, because the packages.starship.package
seems to be expanded to @starship@
and not the store path of pkgs.starship
. It doesn’t work even if I explicity set packages.starship.package = pkgs.starship;
. Unsure how to proceed here. The preset file is in the package; /nix/store/95a32cz0mrbgsgnbilg20d2wdw6aj6x2-starship-1.22.1/share/starship/presets/no-nerd-font.toml
exists.
I appreciate any help trying to fix this addition.