7 gsettings-desktop-schemas,
10 nixos-background-light ? nixos-artwork.wallpapers.nineish,
11 nixos-background-dark ? nixos-artwork.wallpapers.nineish-dark-gray,
12 extraGSettingsOverrides ? "",
13 extraGSettingsOverridePackages ? [ ],
17 inherit (lib) concatMapStringsSep;
19 gsettingsOverrides = ''
20 [org.gnome.desktop.background:Budgie]
21 picture-uri="file://${nixos-background-light.gnomeFilePath}"
22 picture-uri-dark="file://${nixos-background-dark.gnomeFilePath}"
24 [org.gnome.desktop.screensaver:Budgie]
25 picture-uri="file://${nixos-background-dark.gnomeFilePath}"
27 [org.gnome.desktop.interface:Budgie]
31 font-name="Noto Sans 10"
32 document-font-name="Noto Sans 10"
33 monospace-font-name="Hack 10"
35 [org.gnome.desktop.wm.preferences:Budgie]
36 titlebar-font="Noto Sans Bold 10"
38 [org.gnome.mutter:Budgie]
41 [com.solus-project.budgie-menu:Budgie]
42 use-default-menu-icon=true
44 [com.solus-project.budgie-panel:Budgie]
48 [com.solus-project.icon-tasklist:Budgie]
49 pinned-launchers=["nemo.desktop", "firefox.desktop", "vlc.desktop"]
51 [org.buddiesofbudgie.budgie-desktop-view:Budgie]
53 show-active-mounts=true
55 ${extraGSettingsOverrides}
58 gsettingsOverridePackages = [
61 gsettings-desktop-schemas
63 ] ++ extraGSettingsOverridePackages;
66 runCommand "budgie-gsettings-overrides" { preferLocalBuild = true; } ''
67 data_dir="$out/share/gsettings-schemas/nixos-gsettings-overrides"
68 schema_dir="$data_dir/glib-2.0/schemas"
69 mkdir -p "$schema_dir"
71 ${concatMapStringsSep "\n" (
73 "cp -rf \"${glib.getSchemaPath pkg}\"/*.xml \"${glib.getSchemaPath pkg}\"/*.gschema.override \"$schema_dir\""
74 ) gsettingsOverridePackages}
76 chmod -R a+w "$data_dir"
77 cat - > "$schema_dir/zz-nixos-defaults.gschema.override" <<- EOF
81 ${glib.dev}/bin/glib-compile-schemas --strict "$schema_dir"