"fix" gnome-control-center to run on sway again

This commit is contained in:
Colin 2023-05-15 02:09:32 +00:00
parent 6501f4c0d7
commit d024637edf
2 changed files with 21 additions and 0 deletions

View File

@ -55,6 +55,12 @@ let
# mozilla keeps nerfing itself and removing configuration options
firefox-unwrapped = callPackage ./patched/firefox-unwrapped { inherit (unpatched) firefox-unwrapped; };
gnome = unpatched.gnome.overrideScope' (gself: gsuper: {
gnome-control-center = gself.callPackage ./patched/gnome-control-center {
inherit (gsuper) gnome-control-center;
};
});
gocryptfs = callPackage ./patched/gocryptfs { inherit (unpatched) gocryptfs; };
# jackett doesn't allow customization of the bind address: this will probably always be here.

View File

@ -0,0 +1,15 @@
{ gnome-control-center }:
(gnome-control-center.overrideAttrs (upstream: {
# gnome-control-center does not start without XDG_CURRENT_DESKTOP=gnome
# see: <https://github.com/NixOS/nixpkgs/issues/230493>
# see: <https://gitlab.gnome.org/GNOME/gnome-control-center/-/merge_requests/736>
#
# non-gnome DEs (e.g. sway) already set XDG_CURRENT_DESKTOP to something different,
# so changing this system-wide probably isn't a good idea.
preFixup = ''
gappsWrapperArgs+=(
--set XDG_CURRENT_DESKTOP "gnome"
);
'' + upstream.preFixup;
}))