Set GNOME desktop background

This works according to a comment on Reddit - I haven't tested it myself.
This commit is contained in:
Daniel Thwaites 2022-08-13 10:15:54 +01:00
parent 3339cc7991
commit 9185529e3d
No known key found for this signature in database
GPG key ID: D8AFC4BF05670F9D
2 changed files with 16 additions and 0 deletions

View file

@ -61,6 +61,7 @@
./modules/dunst.nix
./modules/feh.nix
./modules/fish.nix
./modules/gnome.nix
./modules/grub.nix
./modules/gtk.nix
./modules/helix.nix

15
modules/gnome.nix Normal file
View file

@ -0,0 +1,15 @@
{ pkgs, config, lib, ... }:
{
options.stylix.targets.gnome.enable =
config.lib.stylix.mkEnableTarget "GNOME" true;
config.home-manager.sharedModules =
lib.mkIf config.stylix.targets.gnome.enable [{
dconf.settings."org/gnome/desktop/background" = {
color-shading-type = "solid";
picture-options = "zoom";
picture-uri = "file://${config.stylix.image}";
};
}];
}