2021-04-21 04:05:19 +02:00
|
|
|
{ config, lib, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
|
|
themeType = types.submodule {
|
|
|
|
options = {
|
2021-04-22 00:25:39 +02:00
|
|
|
alacrittyTheme = mkOption {
|
|
|
|
type = import ./alacritty.nix { inherit lib; };
|
|
|
|
default = {};
|
|
|
|
};
|
2021-04-21 04:05:19 +02:00
|
|
|
i3Theme = mkOption {
|
|
|
|
type = import ./i3.nix { inherit lib; };
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
in
|
|
|
|
{
|
2021-04-21 10:30:05 +02:00
|
|
|
options.my.theme = mkOption {
|
2021-04-21 04:05:19 +02:00
|
|
|
type = themeType;
|
2021-04-21 10:30:05 +02:00
|
|
|
};
|
2021-04-21 04:05:19 +02:00
|
|
|
|
2021-04-21 10:30:05 +02:00
|
|
|
options.my.themes = mkOption {
|
|
|
|
type = with types; attrsOf themeType;
|
2021-04-21 04:05:19 +02:00
|
|
|
};
|
2021-04-21 04:06:51 +02:00
|
|
|
|
2021-04-21 10:30:05 +02:00
|
|
|
config.my.themes = {
|
2021-04-21 04:06:51 +02:00
|
|
|
solarizedLight = import ./solarizedLight;
|
|
|
|
};
|
2021-04-21 04:05:19 +02:00
|
|
|
}
|