2022-08-13 09:15:54 +00:00
|
|
|
{ pkgs, config, lib, ... }:
|
|
|
|
|
2022-11-19 23:41:17 +00:00
|
|
|
with lib;
|
|
|
|
|
2022-08-13 09:15:54 +00:00
|
|
|
{
|
|
|
|
options.stylix.targets.gnome.enable =
|
|
|
|
config.lib.stylix.mkEnableTarget "GNOME" true;
|
|
|
|
|
2022-11-19 23:41:17 +00:00
|
|
|
config = mkIf config.stylix.targets.gnome.enable {
|
|
|
|
home-manager.sharedModules = [{
|
|
|
|
dconf.settings."org/gnome/desktop/background" = {
|
|
|
|
color-shading-type = "solid";
|
|
|
|
picture-options = "zoom";
|
|
|
|
picture-uri = "file://${config.stylix.image}";
|
|
|
|
picture-uri-dark = "file://${config.stylix.image}";
|
|
|
|
};
|
|
|
|
|
|
|
|
dconf.settings."org/gnome/desktop/interface".color-scheme =
|
|
|
|
if config.stylix.polarity == "dark"
|
|
|
|
then "prefer-dark"
|
|
|
|
else "default";
|
|
|
|
}];
|
2022-11-19 23:02:16 +00:00
|
|
|
|
|
|
|
# As 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.gnome-backgrounds}/path/to/your/preferred/background"
|
|
|
|
# which will then download the pack regardless of its exclusion below.
|
|
|
|
environment.gnome.excludePackages = [ pkgs.gnome.gnome-backgrounds ];
|
|
|
|
};
|
2022-08-13 09:15:54 +00:00
|
|
|
}
|