home: themes: move options to my.themes
This commit is contained in:
parent
a25d5051d3
commit
6ff469e96f
|
@ -10,17 +10,15 @@ let
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.my.home = {
|
options.my.theme = mkOption {
|
||||||
theme = mkOption {
|
|
||||||
type = themeType;
|
type = themeType;
|
||||||
};
|
};
|
||||||
|
|
||||||
themes = mkOption {
|
options.my.themes = mkOption {
|
||||||
type = with types; attrsOf themeType;
|
type = with types; attrsOf themeType;
|
||||||
};
|
};
|
||||||
};
|
|
||||||
|
|
||||||
config.my.home.themes = {
|
config.my.themes = {
|
||||||
solarizedLight = import ./solarizedLight;
|
solarizedLight = import ./solarizedLight;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,7 +14,7 @@ let
|
||||||
|
|
||||||
logoutMode = "[L]ogout, [S]uspend, [P]oweroff, [R]eboot";
|
logoutMode = "[L]ogout, [S]uspend, [P]oweroff, [R]eboot";
|
||||||
|
|
||||||
i3Theme = config.my.home.theme.i3Theme;
|
i3Theme = config.my.theme.i3Theme;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
config = lib.mkIf isEnabled {
|
config = lib.mkIf isEnabled {
|
||||||
|
|
|
@ -5,6 +5,6 @@
|
||||||
my.home.x.enable = true;
|
my.home.x.enable = true;
|
||||||
my.home.emacs.enable = true;
|
my.home.emacs.enable = true;
|
||||||
my.home.tmux.enable = true;
|
my.home.tmux.enable = true;
|
||||||
my.home.theme = config.home-manager.users.alarsyo.my.home.themes.solarizedLight;
|
my.theme = config.home-manager.users.alarsyo.my.themes.solarizedLight;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue