forked from mirrors/nixpkgs
connman: disable connman-vpn by default (#18323)
This commit is contained in:
parent
68a38d6c0f
commit
ec8d5945ce
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue