diff options
Diffstat (limited to 'modules/gnome')
-rw-r--r-- | modules/gnome/default.nix | 3 | ||||
-rw-r--r-- | modules/gnome/gnome-config.nix | 5 |
2 files changed, 5 insertions, 3 deletions
diff --git a/modules/gnome/default.nix b/modules/gnome/default.nix index 90b99b1..8cf11c5 100644 --- a/modules/gnome/default.nix +++ b/modules/gnome/default.nix @@ -1,4 +1,7 @@ { config, lib, pkgs, ...}: with lib; { + imports = [ + ./gnome-config.nix + ]; options.santi-modules.gnome.enable = mkEnableOption "Enable gnome"; config = mkIf config.santi-modules.gnome.enable { programs.dconf.enable = true; diff --git a/modules/gnome/gnome-config.nix b/modules/gnome/gnome-config.nix index 5e087ef..ff401c4 100644 --- a/modules/gnome/gnome-config.nix +++ b/modules/gnome/gnome-config.nix @@ -1,6 +1,5 @@ -santi-modules: -{ lib, ... }: lib.optionalAttrs santi-modules.gnome.enable { - dconf.settings = { +{ config, lib, ... }: lib.mkIf config.santi-modules.gnome.enable { + home-manager.users.leonardo.dconf.settings = { "org/gnome/desktop/background" = { picture-uri = "${../../wallpaper.png}"; picture-uri-dark = "${../../wallpaper.png}"; |