network-manager-applet: add sni support

This commit is contained in:
Anton Plotnikov 2018-07-20 00:45:29 +03:00
parent d3871ed774
commit ade04c5e8c

View file

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