dotfiles/catppuccin/lsd/default.nix

32 lines
626 B
Nix
Raw Normal View History

2023-02-10 07:46:37 +01:00
{
config,
lib,
options,
pkgs,
...
}:
with lib; let
global = config.catppuccin;
cfg = config.catppuccin.btop;
2023-02-10 07:46:37 +01:00
in {
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"];
default = global.defaultTheme;
description = "Choose a catppuccin btop theme";
};
};
config = mkIf cfg.enable {
programs.lsd = {
enable = true;
settings.color_theme = "catppuccin_${cfg.theme}";
};
};
}