Files
illogical-impulse/modules/terminal/terminal.nix
T
kenji 58b144792e a
2025-08-13 08:45:56 -05:00

44 lines
765 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.
'';
};
};
};
};
};
config = mkIf cfg.enable {
imports = lib.mkIf cfg.settings.simpleStarship [
./simple-starship.nix
];
home.file = {
".config/starship.toml" = mkIf (!cfg.settings.simpleStarship) {
source = builtins.path {path = ../../.config/starship.toml;};
};
};
};
}