22 lines
554 B
Nix
22 lines
554 B
Nix
{ config, pkgs, lib, flakeRoot, ... }:
|
|
|
|
let
|
|
repoStarshipToml = flakeRoot.outPath + "/assets/conf/dev/terminal/starship.toml";
|
|
|
|
# The exact key that appears in the error:
|
|
targetKey = "${config.home.homeDirectory}/.config/starship.toml";
|
|
in
|
|
{
|
|
xdg.enable = true;
|
|
|
|
programs.starship = {
|
|
enable = true;
|
|
enableZshIntegration = true;
|
|
enableBashIntegration = true;
|
|
enableFishIntegration = true;
|
|
};
|
|
|
|
# Force the *actual conflicting option* (home.file."<abs path>".source)
|
|
home.file."${targetKey}".source = lib.mkForce repoStarshipToml;
|
|
}
|