diff --git a/modules/programs/rofi.nix b/modules/programs/rofi.nix index 649070737..8b1fc9917 100644 --- a/modules/programs/rofi.nix +++ b/modules/programs/rofi.nix @@ -264,8 +264,8 @@ in { programs.rofi.finalPackage = let rofiWithPlugins = cfg.package.override - (old: rec { plugins = (old.plugins or [ ]) ++ cfg.plugins; }); - in if builtins.hasAttr "override" cfg.package then + (old: { plugins = (old.plugins or [ ]) ++ cfg.plugins; }); + in if builtins.hasAttr "override" cfg.package && cfg.plugins != [ ] then rofiWithPlugins else cfg.package;