modules/theme: enable gtk theming if global theming enabled by default
This commit is contained in:
parent
7e5a0442ec
commit
44f2dd55d5
1 changed files with 7 additions and 3 deletions
|
@ -6,13 +6,17 @@
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit (builtins) pathExists;
|
inherit (builtins) pathExists;
|
||||||
inherit (lib) mkIf mkOption mkEnableOption;
|
inherit (lib) mkIf mkOption;
|
||||||
inherit (lib.types) package str;
|
inherit (lib.types) bool package str;
|
||||||
|
|
||||||
cfg = config.theme.gtk;
|
cfg = config.theme.gtk;
|
||||||
in {
|
in {
|
||||||
options.theme.gtk = {
|
options.theme.gtk = {
|
||||||
enable = mkEnableOption "enable GTK theming options";
|
enable = mkOption {
|
||||||
|
type = bool;
|
||||||
|
description = "enable GTK theming options";
|
||||||
|
default = config.theme.enable;
|
||||||
|
};
|
||||||
theme = {
|
theme = {
|
||||||
name = mkOption {
|
name = mkOption {
|
||||||
type = str;
|
type = str;
|
||||||
|
|
Loading…
Reference in a new issue