optimize gnome-console-tweaks logic

This commit is contained in:
Sean Buckley 2023-07-09 21:20:04 -04:00
parent bdeff9d709
commit 2a25f96d61

View file

@ -1,18 +1,15 @@
{
nixpkgs.overlays = [
(self: super: {
gnome-console = super.gnome-console.overrideAttrs (prev: {
patches =
(
if (builtins.elem "patches" (builtins.attrNames prev))
then prev.patches
else [ ]
) ++ [
gnome-console = super.gnome-console.overrideAttrs (
{ patches ? [ ], ... }: {
patches = patches ++ [
./no-notification.patch
./no-warn-close.patch
./tango.patch
];
});
}
);
})
];
}