chore(starship): mkDefault caused entire config to be overridden
Some checks failed
Release / Make release (push) Has been cancelled
CI / Format Nix files (push) Has been cancelled
CI / Test Modules (push) Has been cancelled
CI / Validate sources (push) Has been cancelled
Build & deploy website / Build site (push) Has been cancelled
Release / Publish to Flake registries (push) Has been cancelled
Build & deploy website / Deploy website (push) Has been cancelled

Revert " feat(starship): Starship fixes"

This reverts commit 4ce7b95d1b.
This commit is contained in:
punkfairie 2024-11-02 22:35:46 -07:00
parent 4ce7b95d1b
commit 6a751d43f8
Signed by: punkfairie
GPG key ID: 01823C057725C266
2 changed files with 9 additions and 8 deletions

View file

@ -2,4 +2,4 @@ test:
nix run \
--inputs-from "./dev" "github:Mic92/nix-fast-build" -- \
--no-nom \
--flake "./dev#checks.$(nix eval --raw --impure --expr builtins.currentSystem)"
--flake "./dev#checks$(nix eval --raw --impure --expr builtins.currentSystem)"

View file

@ -2,19 +2,20 @@
config,
lib,
...
}:
let
}: let
inherit (config.rose-pine) sources;
cfg = config.programs.starship.rose-pine;
enable = cfg.enable && config.programs.starship.enable;
themeName = if (cfg.flavor == "main") then "rose-pine" else "rose-pine-${cfg.flavor}";
in
{
options.programs.starship.rose-pine = lib.rp.mkRosePineOpt { name = "starship"; };
themeName =
if (cfg.flavor == "main")
then "rose-pine"
else "rose-pine-${cfg.flavor}";
in {
options.programs.starship.rose-pine = lib.rp.mkRosePineOpt {name = "starship";};
config.programs.starship.settings = lib.mkIf enable (
lib.mkDefault (lib.importTOML "${sources.starship}/${themeName}.toml")
lib.importTOML "${sources.starship}/${themeName}.toml"
);
}