2023-12-01 14:12:33 -05:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
2024-03-26 15:32:48 -04:00
|
|
|
}: let
|
2024-06-28 22:09:17 -04:00
|
|
|
inherit (lib) mkDefault mkOption types;
|
2024-03-26 15:32:48 -04:00
|
|
|
cfg = config.vars;
|
|
|
|
in {
|
|
|
|
options.vars = {
|
2024-01-09 13:13:04 -05:00
|
|
|
mainUser = mkOption {
|
2023-12-01 14:12:33 -05:00
|
|
|
type = types.str;
|
2023-10-18 13:50:00 -04:00
|
|
|
description = ''
|
|
|
|
Username that was defined at the initial setup process
|
|
|
|
'';
|
2023-12-01 14:12:33 -05:00
|
|
|
};
|
|
|
|
|
2024-01-24 18:39:18 -05:00
|
|
|
promptMainColor = mkOption {
|
2024-06-28 22:09:17 -04:00
|
|
|
type = types.enum (import ./prompt-schemes.nix {});
|
2024-01-24 18:39:18 -05:00
|
|
|
default = "purple";
|
|
|
|
};
|
|
|
|
|
|
|
|
promptColors = mkOption {
|
|
|
|
description = ''
|
|
|
|
Colors used in starship prompt
|
|
|
|
'';
|
|
|
|
|
2024-06-28 22:09:17 -04:00
|
|
|
default = import ./prompt-schemes.nix {color = cfg.promptMainColor;};
|
2024-01-24 18:39:18 -05:00
|
|
|
|
2024-03-26 15:32:48 -04:00
|
|
|
readOnly = true;
|
2024-05-05 23:07:06 -04:00
|
|
|
type = types.submodule {
|
|
|
|
options = let
|
|
|
|
inherit (types) str;
|
|
|
|
in {
|
|
|
|
textColor = mkOption {type = str;};
|
|
|
|
firstColor = mkOption {type = str;};
|
|
|
|
secondColor = mkOption {type = str;};
|
|
|
|
thirdColor = mkOption {type = str;};
|
|
|
|
fourthColor = mkOption {type = str;};
|
2024-01-24 18:39:18 -05:00
|
|
|
};
|
2024-05-05 23:07:06 -04:00
|
|
|
};
|
2024-01-24 18:39:18 -05:00
|
|
|
};
|
|
|
|
|
2023-12-08 12:50:38 -05:00
|
|
|
neovimIde = mkOption {
|
|
|
|
type = types.bool;
|
|
|
|
default = true;
|
|
|
|
};
|
2023-10-18 13:50:00 -04:00
|
|
|
};
|
2024-03-26 15:32:48 -04:00
|
|
|
|
|
|
|
config = {
|
2024-06-28 22:09:17 -04:00
|
|
|
environment.variables.FLAKE = mkDefault "/home/${cfg.mainUser}/.nix";
|
2024-03-26 15:32:48 -04:00
|
|
|
};
|
2023-10-18 13:50:00 -04:00
|
|
|
}
|