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; with lib;
let
cfg = config.services.network-manager-applet;
in
{ {
meta.maintainers = [ maintainers.rycee ]; meta.maintainers = [ maintainers.rycee ];
options = { options = {
services.network-manager-applet = { services.network-manager-applet = {
enable = mkEnableOption "the 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 = { Service = {
ExecStart = "${pkgs.networkmanagerapplet}/bin/nm-applet --sm-disable"; ExecStart = "${pkgs.networkmanagerapplet}/bin/nm-applet --sm-disable ${if cfg.sni then "--indicator" else ""}";
}; };
}; };
}; };