feat: flavours colorscheme

This commit is contained in:
2024-04-07 17:05:31 +02:00
parent 136cf83105
commit 040515003f
6 changed files with 104 additions and 6 deletions

View File

@@ -0,0 +1,37 @@
{
config,
lib,
pkgs,
...
}:
with lib;
let
cfg = config.theme.base16;
in
{
imports = [ ./integrations/kitty ];
options.theme.base16 = {
enable = mkEnableOption "Enable a global base16 theme";
options = {
shell = mkOption {
type = types.string;
default = "bash -c '{}'";
};
items = mkOption {
type = types.listOf types.attrs;
default = [ ];
};
};
};
config = mkIf cfg.enable {
home.packages = with pkgs; [ flavours ];
xdg.configFile."flavours/config.toml".source =
(pkgs.formats.toml { }).generate "config.toml"
cfg.options;
};
}