From 4e63fa32d8beefd2f222181e8ca8d41eb9a7e153 Mon Sep 17 00:00:00 2001 From: theunpleasantowl <46432153+theunpleasantowl@users.noreply.github.com> Date: Mon, 15 Dec 2025 02:53:00 -0500 Subject: [PATCH] gnome: only exclude GNOME backgrounds when setting wallpaper (#2088) Link: https://github.com/nix-community/stylix/pull/2088 Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com> (cherry picked from commit f6e9fbaeb3f810cca30ed2056d35a7d0fbccb4ef) --- modules/gnome/nixos.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/gnome/nixos.nix b/modules/gnome/nixos.nix index 0e2cbe82..5d80941e 100644 --- a/modules/gnome/nixos.nix +++ b/modules/gnome/nixos.nix @@ -29,12 +29,14 @@ in ) ) { - # As Stylix is controlling the wallpaper, there is no need for this + # If Stylix is controlling the wallpaper, there is no need for this # pack of default wallpapers to be installed. # If you want to use one, you can set stylix.image to something like # "${pkgs.gnome-backgrounds}/path/to/your/preferred/background" # which will then download the pack regardless of its exclusion below. - environment.gnome.excludePackages = [ pkgs.gnome-backgrounds ]; + environment.gnome.excludePackages = lib.mkIf (config.stylix.image != null) [ + pkgs.gnome-backgrounds + ]; nixpkgs.overlays = [ (_: super: {