3
0
Fork 0
forked from mirrors/nixpkgs

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-20 11:47:03 -05:00
parent 96e711bcd1
commit 4f49053ad9

View file

@ -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";