gnome.nixos-gsettings-overrides: Ensure the settings are not overwritten

1d4bddaed5
started copying override files from packages into the schema for compilation.
`gsettings-desktop-schemas` package contains `remove-backgrounds.gschema.override`
which is later in the alphabet than `nixos-defaults.gschema.override`
so it would take precedence over the values from the GNOME NixOS module,
causing the background to not be set, among other things.

Let’s rename the override file coming from the module to be applied last.
This commit is contained in:
Jan Tojnar 2022-10-21 11:44:17 +02:00
parent db25c4da28
commit 9e99c0195d

View File

@ -47,7 +47,7 @@ runCommand "gnome-gsettings-overrides" { preferLocalBuild = true; } ''
${concatMapStringsSep "\n" (pkg: "cp -rf \"${glib.getSchemaPath pkg}\"/*.xml \"${glib.getSchemaPath pkg}\"/*.gschema.override \"$schema_dir\"") gsettingsOverridePackages}
chmod -R a+w "$data_dir"
cat - > "$schema_dir/nixos-defaults.gschema.override" <<- EOF
cat - > "$schema_dir/zz-nixos-defaults.gschema.override" <<- EOF
${gsettingsOverrides}
EOF