Commit Graph

3 Commits

Author SHA1 Message Date
Jan Tojnar
9e99c0195d 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.
2022-10-21 11:49:58 +02:00
Jan Tojnar
35e033d416 gnome.nixos-gsettings-override: Make compilation strict
Otherwise people will just miss errors in their overrides and be confused why they do not work.
2022-09-26 00:52:08 +02:00
Jan Tojnar
1d4bddaed5 gnome.nixos-gsettings-override: extract from NixOS module
This will clean up the module slightly and bring it more in line with Pantheon & Cinnamon.
While at it do some other refactoring inspired by those modules:

- Correct a typo in light background attribute name.
- Rename the attribute name.
- Quote arguments.
- Extract the overridden package list and override text into variables.
- Avoid having separate copy commands for overrides from packages.
- Avoid `with` statements.
- Use `concatMapStringsSep`.
2022-09-26 00:52:08 +02:00