refactor: removing needless module complexity
This commit is contained in:
24
modules/home/services/dconf/default.nix
Normal file
24
modules/home/services/dconf/default.nix
Normal file
@@ -0,0 +1,24 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) types mkOption;
|
||||
cfg = config.home.services.dconf;
|
||||
in {
|
||||
options = {
|
||||
home.services.dconf.settings.color-scheme = mkOption {
|
||||
type = types.str;
|
||||
default = "prefer-dark";
|
||||
};
|
||||
};
|
||||
config = {
|
||||
dconf = {
|
||||
settings = {
|
||||
"org/gnome/desktop/interface" = {
|
||||
color-scheme = cfg.settings.color-scheme;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user