Files
2025-08-19 17:03:16 -05:00

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;};
};
};
}