From aed461750ec909cd9006b57e7286fdc8e3ae5071 Mon Sep 17 00:00:00 2001 From: Lucy Hochkamp Date: Tue, 2 Apr 2024 16:13:43 +0200 Subject: [PATCH] aawawwaawawaw --- nixos-modules/services/tailscale-openvpn.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/nixos-modules/services/tailscale-openvpn.nix b/nixos-modules/services/tailscale-openvpn.nix index 5eeb1d6e..30fb298b 100644 --- a/nixos-modules/services/tailscale-openvpn.nix +++ b/nixos-modules/services/tailscale-openvpn.nix @@ -37,8 +37,8 @@ with lib; cfg.config ); containers = imap0 - (i: v: { - name = v.name; + (i: name: { + name = name; value = { autoStart = true; ephemeral = true; @@ -51,9 +51,9 @@ with lib; "/run/agenix.d" = { hostPath = "/run/agenix.d"; isReadOnly = true; }; }; config = { - services.openvpn.servers.${v.name} = { + services.openvpn.servers.${name} = { config = '' - config ${v.value} + config ${cfg.config.${name}} ''; up = "echo nameserver $nameserver | ${pkgs.openresolv}/sbin/resolvconf -m 0 -a $dev"; down = "${pkgs.openresolv}/sbin/resolvconf -d $dev"; @@ -69,7 +69,7 @@ with lib; }; }) - (nameValuePair cfg.config); + (builtins.attrNames cfg.config);