Files
illogical-impulse/modules/terminal/terminal.nix
T
2025-08-13 08:39:37 -05:00

42 lines
748 B
Nix

{
config,
lib,
inputs,
pkgs,
...
}: let
inherit
(lib)
mkIf
mkOption
types
;
cfg = config.programs.illogical-impulse;
in {
options = {
programs.illogical-impulse = {
settings = {
simpleStarship = {
enable = mkOption {
type = types.bool;
default = false;
description = ''
Uses Pure starship.
'';
};
};
};
};
};
imports = lib.mkIf cfg.settings.simpleStarship [
./simple-starship.nix
];
config = mkIf cfg.enable {
home.file = {
".config/starship.toml" = mkIf (!cfg.simpleStarship) {
source = builtins.path {path = ../../.config/starship.toml;};
};
};
};
}