diff options
author | Leonardo Santiago <[email protected]> | 2025-05-05 23:34:15 -0300 |
---|---|---|
committer | Leonardo Santiago <[email protected]> | 2025-05-05 23:34:15 -0300 |
commit | 0ec583d64fb7640611f5e2d440c75a1b8b86f8f5 (patch) | |
tree | b8b644b9ca3b7261f698fe1fc6efc9c92775c1f0 /modules/gnome | |
parent | 1bd7f83ce366a3d4addf7487af8c8b019320720f (diff) |
chore(home-manager): improve home-manager structuring
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}"; |