Compare commits
1 commit
1faa8d9acf
...
cce107a9bb
| Author | SHA1 | Date | |
|---|---|---|---|
| cce107a9bb |
1 changed files with 6 additions and 0 deletions
|
|
@ -261,5 +261,11 @@ in
|
|||
(lib.mkIf (cfg.internal.enable && !cfg.internal.startAtBoot) {
|
||||
systemd.services."wg-quick-${cfg.internal.name}".wantedBy = lib.mkForce [ ];
|
||||
})
|
||||
|
||||
# Make systemd shut down one service when starting the other
|
||||
(lib.mkIf (cfg.internal.enable) {
|
||||
systemd.services."wg-quick-${cfg.iface}".conflicts = [ "wg-quick-${cfg.internal.name}.service" ];
|
||||
systemd.services."wg-quick-${cfg.internal.name}".conflicts = [ "wg-quick-${cfg.iface}.service" ];
|
||||
})
|
||||
]);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue