From 4f49053ad977e20695a5e27ca163cec0e6e435ed Mon Sep 17 00:00:00 2001 From: worldofpeace Date: Fri, 20 Dec 2019 11:47:03 -0500 Subject: [PATCH] pantheon.switchboard-with-plugs: have plugs argument only append to defaults Switchboard was designed identically to Wingpanel, so the same justification stands here. --- pkgs/desktops/pantheon/apps/switchboard/wrapper.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/desktops/pantheon/apps/switchboard/wrapper.nix b/pkgs/desktops/pantheon/apps/switchboard/wrapper.nix index c0abb172806..0abce809853 100644 --- a/pkgs/desktops/pantheon/apps/switchboard/wrapper.nix +++ b/pkgs/desktops/pantheon/apps/switchboard/wrapper.nix @@ -5,10 +5,14 @@ , switchboard , switchboardPlugs , plugs + # Only useful to disable for development testing. +, useDefaultPlugs ? true }: let - selectedPlugs = if plugs == null then switchboardPlugs else plugs; + selectedPlugs = + if plugs == null then switchboardPlugs + else plugs ++ (lib.optional useDefaultPlugs switchboardPlugs); in symlinkJoin { name = "${switchboard.name}-with-plugs";