forked from Shinonome/dots-hyprland
24 lines
534 B
Nix
24 lines
534 B
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}: let
|
|
cfg = config.programs.illogical-impulse;
|
|
simpleStarshipSettings = import ./simpleStarship.nix {inherit lib;};
|
|
in {
|
|
imports = [
|
|
../options.nix
|
|
];
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
programs.starship = lib.mkIf cfg.settings.simpleStarship.enable {
|
|
enable = true;
|
|
settings = simpleStarshipSettings;
|
|
};
|
|
|
|
home.file.".config/starship.toml" = lib.mkIf (!cfg.settings.simpleStarship.enable) {
|
|
source = builtins.path {path = ../../.config/starship.toml;};
|
|
};
|
|
};
|
|
}
|