mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2026-01-04 23:02:48 +00:00
feat: flavours colorscheme
This commit is contained in:
37
modules/home-manager/theme/default.nix
Normal file
37
modules/home-manager/theme/default.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user