diff options
author | Vincent Ambo <mail@tazj.in> | 2021-03-25T18·14+0200 |
---|---|---|
committer | tazjin <mail@tazj.in> | 2021-03-25T19·14+0000 |
commit | d34c527372e0a6b8dcb0d9796451b987c953a88e (patch) | |
tree | be88657a95ddac7ed5d9f0978f00712c8f675238 /nix | |
parent | d01d6bb63db9da000dd1b3c8491a6c0d43877c29 (diff) |
refactor: Replace some uses of builtins.toFile with pkgs.writeText r/2329
I'm looking at removing some of these because they can cause unnecessary build steps during CI pipeline generation. Change-Id: I84742968918090c050d2eedab8a1b42692632a42 Reviewed-on: https://cl.tvl.fyi/c/depot/+/2655 Reviewed-by: sterni <sternenseemann@systemli.org> Tested-by: BuildkiteCI
Diffstat (limited to 'nix')
-rw-r--r-- | nix/tailscale/default.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nix/tailscale/default.nix b/nix/tailscale/default.nix index a21af7d115dc..8d6a0f661b92 100644 --- a/nix/tailscale/default.nix +++ b/nix/tailscale/default.nix @@ -2,7 +2,7 @@ # # https://tailscale.com/kb/1018/install-acls -{ depot, ... }: +{ depot, pkgs, ... }: with depot.nix.yants; @@ -27,4 +27,4 @@ let # Actual ACL entries ACLs = list acl; }; -in config: toFile "tailscale-acl.json" (toJSON (aclConfig config)) +in config: pkgs.writeText "tailscale-acl.json" (toJSON (aclConfig config)) |