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" = {
|
||||
mode = "0644";
|
||||
text = ''
|
||||
nameserver ${secret.wireguard.dns}
|
||||
nameserver ${secret.wireguard.dnsv4}
|
||||
nameserver ${secret.wireguard.dnsv6}
|
||||
'';
|
||||
};
|
||||
|
||||
|
@ -44,6 +45,11 @@
|
|||
wants = [ "network-online.target" ];
|
||||
after = [ "netns@wg.service" "network-online.target" "run-agenix.d.mount" ];
|
||||
environment.WG_ENDPOINT_RESOLUTION_RETRIES = "infinity";
|
||||
|
||||
restartTriggers = [
|
||||
"${config.age.secrets.wireguard-config.file}"
|
||||
];
|
||||
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
RemainAfterExit = true;
|
||||
|
|
Loading…
Reference in a new issue