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