2023-02-10 07:46:37 +01:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
options,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}:
|
2023-01-31 09:38:11 +01:00
|
|
|
with lib; let
|
|
|
|
global = config.catppuccin;
|
|
|
|
cfg = config.catppuccin.btop;
|
2023-02-10 07:46:37 +01:00
|
|
|
in {
|
2023-01-31 09:38:11 +01:00
|
|
|
options.catppuccin.lsd = {
|
|
|
|
enable = mkEnableOption {
|
|
|
|
type = types.bool;
|
|
|
|
default = false;
|
|
|
|
description = "Enable catppuccin btop theme";
|
|
|
|
};
|
|
|
|
theme = mkOption {
|
2023-02-10 07:46:37 +01:00
|
|
|
type = types.enum ["mocha" "macchiato" "frappe" "latte"];
|
2023-01-31 09:38:11 +01:00
|
|
|
default = global.defaultTheme;
|
|
|
|
description = "Choose a catppuccin btop theme";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
programs.lsd = {
|
|
|
|
enable = true;
|
|
|
|
settings.color_theme = "catppuccin_${cfg.theme}";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|