From 18618c9c2ab34568676b016e95b2b5b5bd0ce309 Mon Sep 17 00:00:00 2001 From: niten Date: Fri, 15 Oct 2021 15:22:21 -0700 Subject: [PATCH] Apparently writeText doesn't exist in pkgs? --- lib/fudo/initrd-network.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fudo/initrd-network.nix b/lib/fudo/initrd-network.nix index 84601d5..329ba50 100644 --- a/lib/fudo/initrd-network.nix +++ b/lib/fudo/initrd-network.nix @@ -10,7 +10,7 @@ let concatLists = lsts: concatMap (i: i) lsts; gen-sshfp-records-pkg = hostname: pubkey: let - pubkey-file = writeText "${hostname}-initrd-ssh-pubkey" pubkey; + pubkey-file = builtins.toFile "${hostname}-initrd-ssh-pubkey" pubkey; in pkgs.stdenv.mkDerivation { name = "${hostname}-initrd-ssh-firngerprint";