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 {
|
extraConfig = mkOption {
|
||||||
type = types.lines;
|
type = types.lines;
|
||||||
default = ''
|
default = ''
|
||||||
@ -78,7 +86,7 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.services."connman-vpn" = {
|
systemd.services."connman-vpn" = mkIf cfg.enableVPN {
|
||||||
description = "ConnMan VPN service";
|
description = "ConnMan VPN service";
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
after = [ "syslog.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";
|
description = "D-BUS Service";
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Name = "net.connman.vpn";
|
Name = "net.connman.vpn";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user