stylix/modules/gnome.nix
Daniel Thwaites 9185529e3d
Set GNOME desktop background
This works according to a comment on Reddit - I haven't tested it myself.
2022-08-13 10:15:54 +01:00

15 lines
414 B
Nix

{ 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}";
};
}];
}