mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2025-12-12 11:36:20 +00:00
38 lines
643 B
Nix
38 lines
643 B
Nix
{
|
|
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;
|
|
};
|
|
}
|