From 2a25f96d615387db5e03f08ca4c01ed29258b485 Mon Sep 17 00:00:00 2001 From: Sean Buckley Date: Sun, 9 Jul 2023 21:20:04 -0400 Subject: [PATCH] optimize gnome-console-tweaks logic --- modules/gnome-console-tweaks/default.nix | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/modules/gnome-console-tweaks/default.nix b/modules/gnome-console-tweaks/default.nix index 096d003..bf303d3 100644 --- a/modules/gnome-console-tweaks/default.nix +++ b/modules/gnome-console-tweaks/default.nix @@ -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 ]; - }); + } + ); }) ]; }