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:
parent
96e711bcd1
commit
4f49053ad9
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue