nixos-config/home/themes/default.nix

46 lines
818 B
Nix
Raw Normal View History

2022-04-10 11:54:58 +02:00
{
config,
lib,
...
}: let
inherit
(lib)
2022-01-11 16:08:21 +01:00
mkOption
types
2022-04-10 11:54:58 +02:00
;
2022-01-11 16:08:21 +01:00
2021-04-21 04:05:19 +02:00
themeType = types.submodule {
options = {
2021-04-22 00:25:39 +02:00
alacrittyTheme = mkOption {
2022-04-10 11:54:58 +02:00
type = import ./alacritty.nix {inherit lib;};
2021-04-22 00:25:39 +02:00
default = {};
};
2021-07-29 00:07:33 +02:00
batTheme = mkOption {
2022-04-10 11:54:58 +02:00
type = import ./bat.nix {inherit lib;};
2021-07-29 00:07:33 +02:00
default = {};
};
2021-04-21 04:05:19 +02:00
i3Theme = mkOption {
2022-04-10 11:54:58 +02:00
type = import ./i3.nix {inherit lib;};
2021-04-22 00:25:49 +02:00
default = {};
2021-04-21 04:05:19 +02:00
};
2021-04-22 02:33:39 +02:00
i3BarTheme = mkOption {
2022-04-10 11:54:58 +02:00
type = import ./i3bar.nix {inherit lib;};
2021-04-22 02:33:39 +02:00
default = {};
};
2021-04-21 04:05:19 +02:00
};
};
2022-04-10 11:54:58 +02:00
in {
options.my.theme = mkOption {
2022-04-10 11:54:58 +02:00
type = themeType;
default = {};
};
2021-04-21 04:05:19 +02:00
options.my.themes = mkOption {
2022-01-11 16:08:21 +01:00
type = types.attrsOf themeType;
2021-04-21 04:05:19 +02:00
};
2021-04-21 04:06:51 +02:00
config.my.themes = {
2021-04-21 04:06:51 +02:00
solarizedLight = import ./solarizedLight;
};
2021-04-21 04:05:19 +02:00
}