From 016c589bb4768cad423b9f33de83b203e236ba74 Mon Sep 17 00:00:00 2001 From: worldofpeace Date: Fri, 20 Dec 2019 12:22:39 -0500 Subject: [PATCH] nixos/pantheon: options for extra switchboard plugs and wingpanel indicators --- .../x11/desktop-managers/pantheon.nix | 20 +++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/nixos/modules/services/x11/desktop-managers/pantheon.nix b/nixos/modules/services/x11/desktop-managers/pantheon.nix index 474e7a57733..b46a2d189ef 100644 --- a/nixos/modules/services/x11/desktop-managers/pantheon.nix +++ b/nixos/modules/services/x11/desktop-managers/pantheon.nix @@ -52,6 +52,18 @@ in ]; }; + extraWingpanelIndicators = mkOption { + default = null; + type = with types; nullOr (listOf package); + description = "Indicators to add to Wingpanel."; + }; + + extraSwitchboardPlugs = mkOption { + default = null; + type = with types; nullOr (listOf package); + description = "Plugs to add to Switchboard."; + }; + extraGSettingsOverrides = mkOption { default = ""; type = types.lines; @@ -183,8 +195,12 @@ in elementary-session-settings elementary-shortcut-overlay gala - switchboard-with-plugs - wingpanel-with-indicators + (switchboard-with-plugs.override { + plugs = cfg.extraSwitchboardPlugs; + }) + (wingpanel-with-indicators.override { + indicators = cfg.extraWingpanelIndicators; + }) # Services cerbere