From 4365016f09c6d178bf0e40fe9003012c97f05a60 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Sat, 1 Mar 2025 22:03:00 +0100 Subject: [PATCH] gnome-shell: Fix default WM settings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit gnome-shell contains GSettings schema overrides for Mutter. Since we do not have global FHS path for schemas, we compile schemas locally per package and overrides for another package have no effect. As a workaround, let’s copy the the Mutter schema here so it ends up being included in gnome-shell’s `gschemas.compiled`. This also has an effect on `gnome.nixos-gsettings-overrides`, which pulls in schemas and overrides from `gnome-shell`. --- pkgs/by-name/gn/gnome-shell/package.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/by-name/gn/gnome-shell/package.nix b/pkgs/by-name/gn/gnome-shell/package.nix index a19b05d19a05..f6a1ecd6770c 100644 --- a/pkgs/by-name/gn/gnome-shell/package.nix +++ b/pkgs/by-name/gn/gnome-shell/package.nix @@ -190,6 +190,13 @@ stdenv.mkDerivation (finalAttrs: { rm data/theme/gnome-shell-{light,dark}.css ''; + preInstall = '' + # gnome-shell contains GSettings schema overrides for Mutter. + schemadir="$out/share/glib-2.0/schemas" + mkdir -p "$schemadir" + cp "${glib.getSchemaPath mutter}/org.gnome.mutter.gschema.xml" "$schemadir" + ''; + postInstall = '' # Pull in WebP and JXL support for gnome-backgrounds. # In postInstall to run before gappsWrapperArgsHook.