summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2021-10-17 22:39:57 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2021-10-17 22:39:57 +0200
commita79b87b0224cdd0069cbd4d3534475ee3f04dbf9 (patch)
tree9668af34cf126181ea93217cc0a90650315dc25c
parent2f55ec8916c190ab1c76e8b7fd07f01ae5dc18ac (diff)
downloadnixos-a79b87b0224cdd0069cbd4d3534475ee3f04dbf9.tar
nixos-a79b87b0224cdd0069cbd4d3534475ee3f04dbf9.tar.gz
nixos-a79b87b0224cdd0069cbd4d3534475ee3f04dbf9.tar.bz2
nixos-a79b87b0224cdd0069cbd4d3534475ee3f04dbf9.tar.xz
nixos-a79b87b0224cdd0069cbd4d3534475ee3f04dbf9.zip
yggdrasil-wg: ...
-rw-r--r--modules/yggdrasil-wg/default.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/yggdrasil-wg/default.nix b/modules/yggdrasil-wg/default.nix
index 6e49214e..3d9da305 100644
--- a/modules/yggdrasil-wg/default.nix
+++ b/modules/yggdrasil-wg/default.nix
@@ -180,6 +180,7 @@ in {
180 180
181 systemd.services = listToAttrs (filter ({ value, ...}: value != null) (map (opts@{to, from, ...}: let other = if from == hostName then to else from; in nameValuePair "yggdrasil-udp2raw@${other}" (if opts ? "endpointHost" && opts ? "udp2raw" then { 181 systemd.services = listToAttrs (filter ({ value, ...}: value != null) (map (opts@{to, from, ...}: let other = if from == hostName then to else from; in nameValuePair "yggdrasil-udp2raw@${other}" (if opts ? "endpointHost" && opts ? "udp2raw" then {
182 path = with pkgs; [iptables]; 182 path = with pkgs; [iptables];
183 wantedBy = [ "network.target" ];
183 serviceConfig = { 184 serviceConfig = {
184 RuntimeDirectory = ["udp2raw-config-${other}"]; 185 RuntimeDirectory = ["udp2raw-config-${other}"];
185 RuntimeDirectoryMode = "0700"; 186 RuntimeDirectoryMode = "0700";