Merge pull request #76116 from worldofpeace/pantheon-cleanup

Pantheon cleanups
This commit is contained in:
worldofpeace
2019-12-22 22:59:21 -05:00
committed by GitHub
6 changed files with 214 additions and 206 deletions
@@ -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";