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 <sternenseemann@systemli.org>
Tested-by: BuildkiteCI
This commit is contained in:
Vincent Ambo 2021-03-25 20:14:48 +02:00 committed by tazjin
parent d01d6bb63d
commit d34c527372
3 changed files with 8 additions and 10 deletions

View file

@ -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))