Updates
This commit is contained in:
parent
d3bd9f7c1e
commit
b0fa9f7915
4 changed files with 7 additions and 1 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -6,7 +6,8 @@
|
||||||
environment.etc."netns/wg/resolv.conf" = {
|
environment.etc."netns/wg/resolv.conf" = {
|
||||||
mode = "0644";
|
mode = "0644";
|
||||||
text = ''
|
text = ''
|
||||||
nameserver ${secret.wireguard.dns}
|
nameserver ${secret.wireguard.dnsv4}
|
||||||
|
nameserver ${secret.wireguard.dnsv6}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -44,6 +45,11 @@
|
||||||
wants = [ "network-online.target" ];
|
wants = [ "network-online.target" ];
|
||||||
after = [ "netns@wg.service" "network-online.target" "run-agenix.d.mount" ];
|
after = [ "netns@wg.service" "network-online.target" "run-agenix.d.mount" ];
|
||||||
environment.WG_ENDPOINT_RESOLUTION_RETRIES = "infinity";
|
environment.WG_ENDPOINT_RESOLUTION_RETRIES = "infinity";
|
||||||
|
|
||||||
|
restartTriggers = [
|
||||||
|
"${config.age.secrets.wireguard-config.file}"
|
||||||
|
];
|
||||||
|
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
RemainAfterExit = true;
|
RemainAfterExit = true;
|
||||||
|
|
Loading…
Reference in a new issue