pantheon.switchboard-with-plugs: have plugs argument only append to defaults

Switchboard was designed identically to Wingpanel, so the same justification
stands here.
This commit is contained in:
worldofpeace
2019-12-21 23:08:13 -05:00
parent 96e711bcd1
commit 4f49053ad9
@@ -5,10 +5,14 @@
, switchboard , switchboard
, switchboardPlugs , switchboardPlugs
, plugs , plugs
# Only useful to disable for development testing.
, useDefaultPlugs ? true
}: }:
let let
selectedPlugs = if plugs == null then switchboardPlugs else plugs; selectedPlugs =
if plugs == null then switchboardPlugs
else plugs ++ (lib.optional useDefaultPlugs switchboardPlugs);
in in
symlinkJoin { symlinkJoin {
name = "${switchboard.name}-with-plugs"; name = "${switchboard.name}-with-plugs";