home: themes: setup theme types for i3

This commit is contained in:
Antoine Martin 2021-04-21 04:05:19 +02:00
parent 0cdb05ecf1
commit 8dff0e21e1
4 changed files with 215 additions and 0 deletions

22
home/themes/default.nix Normal file
View file

@ -0,0 +1,22 @@
{ config, lib, ... }:
with lib;
let
themeType = types.submodule {
options = {
i3Theme = mkOption {
type = import ./i3.nix { inherit lib; };
};
};
};
in
{
options.my.home = {
theme = mkOption {
type = themeType;
};
themes = mkOption {
type = with types; attrsOf themeType;
};
};
}