forked from Shinonome/dots-hyprland
42 lines
748 B
Nix
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;};
|
|
};
|
|
};
|
|
};
|
|
}
|