From d34c527372e0a6b8dcb0d9796451b987c953a88e Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Thu, 25 Mar 2021 20:14:48 +0200 Subject: refactor: Replace some uses of builtins.toFile with pkgs.writeText 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 Tested-by: BuildkiteCI --- nix/tailscale/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nix') 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)) -- cgit 1.4.1