3
0
Fork 0
forked from mirrors/nixpkgs

connman: disable connman-vpn by default (#18323)

This commit is contained in:
Michele Guerini Rocco 2016-09-25 08:02:29 +02:00 committed by Franz Pletz
parent 68a38d6c0f
commit ec8d5945ce

View file

@ -27,6 +27,14 @@ in {
'';
};
enableVPN = mkOption {
type = types.bool;
default = true;
description = ''
Whether to enable ConnMan VPN service.
'';
};
extraConfig = mkOption {
type = types.lines;
default = ''
@ -78,7 +86,7 @@ in {
};
};
systemd.services."connman-vpn" = {
systemd.services."connman-vpn" = mkIf cfg.enableVPN {
description = "ConnMan VPN service";
wantedBy = [ "multi-user.target" ];
after = [ "syslog.target" ];
@ -91,7 +99,7 @@ in {
};
};
systemd.services."net-connman-vpn" = {
systemd.services."net-connman-vpn" = mkIf cfg.enableVPN {
description = "D-BUS Service";
serviceConfig = {
Name = "net.connman.vpn";