summary refs log tree commit diff
diff options
context:
space:
mode:
authorworldofpeace <worldofpeace@protonmail.ch>2019-12-20 11:47:03 -0500
committerworldofpeace <worldofpeace@protonmail.ch>2019-12-21 23:08:13 -0500
commit4f49053ad977e20695a5e27ca163cec0e6e435ed (patch)
treecbfaa4af96d95230fef59ecc6a3fba8b971e5e21
parent96e711bcd1c60ec4eabbfc14b5ab3c0fc49799b1 (diff)
downloadnixpkgs-4f49053ad977e20695a5e27ca163cec0e6e435ed.tar
nixpkgs-4f49053ad977e20695a5e27ca163cec0e6e435ed.tar.gz
nixpkgs-4f49053ad977e20695a5e27ca163cec0e6e435ed.tar.bz2
nixpkgs-4f49053ad977e20695a5e27ca163cec0e6e435ed.tar.lz
nixpkgs-4f49053ad977e20695a5e27ca163cec0e6e435ed.tar.xz
nixpkgs-4f49053ad977e20695a5e27ca163cec0e6e435ed.tar.zst
nixpkgs-4f49053ad977e20695a5e27ca163cec0e6e435ed.zip
pantheon.switchboard-with-plugs: have plugs argument only append to defaults
Switchboard was designed identically to Wingpanel, so the same justification
stands here.
-rw-r--r--pkgs/desktops/pantheon/apps/switchboard/wrapper.nix6
1 files changed, 5 insertions, 1 deletions
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";