Make VPN services conflict with each other
This commit is contained in:
parent
1cb0e4bdc7
commit
a6d4f919cf
1 changed files with 8 additions and 2 deletions
|
@ -14,8 +14,14 @@
|
||||||
|
|
||||||
config = lib.mkIf config.chvp.vpn.ugent.enable {
|
config = lib.mkIf config.chvp.vpn.ugent.enable {
|
||||||
systemd.services = {
|
systemd.services = {
|
||||||
ugent-global-vpn.after = [ "network.target" ];
|
ugent-global-vpn = {
|
||||||
ugent-local-vpn.after = [ "network.target" ];
|
after = [ "network.target" ];
|
||||||
|
conflicts = [ "ugent-local-vpn.service" ];
|
||||||
|
};
|
||||||
|
ugent-local-vpn = {
|
||||||
|
after = [ "network.target" ];
|
||||||
|
conflicts = [ "ugent-global-vpn.service" ];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
security.polkit.extraConfig = ''
|
security.polkit.extraConfig = ''
|
||||||
polkit.addRule(function(action, subject) {
|
polkit.addRule(function(action, subject) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue