2022-08-13 09:15:54 +00:00
|
|
|
{ pkgs, config, lib, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
options.stylix.targets.gnome.enable =
|
|
|
|
config.lib.stylix.mkEnableTarget "GNOME" true;
|
|
|
|
|
|
|
|
config.home-manager.sharedModules =
|
2022-11-04 19:25:50 +00:00
|
|
|
if config.stylix.polarity == "dark"
|
|
|
|
then
|
|
|
|
lib.mkIf config.stylix.targets.gnome.enable [{
|
|
|
|
dconf.settings."org/gnome/desktop/background" = {
|
|
|
|
color-shading-type = "solid";
|
|
|
|
picture-options = "zoom";
|
|
|
|
picture-uri-dark = "file://${config.stylix.image}";
|
|
|
|
};
|
|
|
|
dconf.settings."org/gnome/desktop/interface" = {
|
|
|
|
color-scheme = "prefer-dark";
|
|
|
|
};
|
|
|
|
}]
|
|
|
|
else
|
|
|
|
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}";
|
|
|
|
};
|
|
|
|
}];
|
2022-08-13 09:15:54 +00:00
|
|
|
}
|