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 {
|
||||
systemd.services = {
|
||||
ugent-global-vpn.after = [ "network.target" ];
|
||||
ugent-local-vpn.after = [ "network.target" ];
|
||||
ugent-global-vpn = {
|
||||
after = [ "network.target" ];
|
||||
conflicts = [ "ugent-local-vpn.service" ];
|
||||
};
|
||||
ugent-local-vpn = {
|
||||
after = [ "network.target" ];
|
||||
conflicts = [ "ugent-global-vpn.service" ];
|
||||
};
|
||||
};
|
||||
security.polkit.extraConfig = ''
|
||||
polkit.addRule(function(action, subject) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue