From ade04c5e8ce47f3cd79b2db0f52d2513abae8b19 Mon Sep 17 00:00:00 2001 From: Anton Plotnikov Date: Fri, 20 Jul 2018 00:45:29 +0300 Subject: [PATCH] network-manager-applet: add sni support --- modules/services/network-manager-applet.nix | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/modules/services/network-manager-applet.nix b/modules/services/network-manager-applet.nix index 6fd50575..17c03386 100644 --- a/modules/services/network-manager-applet.nix +++ b/modules/services/network-manager-applet.nix @@ -2,12 +2,27 @@ with lib; +let + + cfg = config.services.network-manager-applet; + +in + { meta.maintainers = [ maintainers.rycee ]; options = { services.network-manager-applet = { enable = mkEnableOption "the Network Manager applet"; + + sni = mkOption { + type = types.bool; + default = false; + example = true; + description = '' + Start on SNI mode (appindicator support). + ''; + }; }; }; @@ -24,7 +39,7 @@ with lib; }; Service = { - ExecStart = "${pkgs.networkmanagerapplet}/bin/nm-applet --sm-disable"; + ExecStart = "${pkgs.networkmanagerapplet}/bin/nm-applet --sm-disable ${if cfg.sni then "--indicator" else ""}"; }; }; };