vpn v2
This commit is contained in:
@@ -32,7 +32,7 @@
|
|||||||
wireguard-netns = {
|
wireguard-netns = {
|
||||||
enable = true;
|
enable = true;
|
||||||
namespace = "vpn";
|
namespace = "vpn";
|
||||||
configFile = config.age.secrets.wireguardCredentials.path;
|
configFile = config.age.secrets.wgCredentials.path;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ in {
|
|||||||
systemd.services."netns@${cfg.namespace}" = {
|
systemd.services."netns@${cfg.namespace}" = {
|
||||||
description = "WireGuard VPN netns (${cfg.namespace})";
|
description = "WireGuard VPN netns (${cfg.namespace})";
|
||||||
after = ["network-online.target"];
|
after = ["network-online.target"];
|
||||||
|
wants = ["network-online.target"];
|
||||||
wantedBy = ["multi-user.target"];
|
wantedBy = ["multi-user.target"];
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
|
|||||||
Reference in New Issue
Block a user