From 210a19d12cb7182571d689f326042a1ed8a70c5f Mon Sep 17 00:00:00 2001 From: niten Date: Fri, 15 Oct 2021 15:20:43 -0700 Subject: [PATCH] writeTextFile -> writeText --- lib/fudo/initrd-network.nix | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/fudo/initrd-network.nix b/lib/fudo/initrd-network.nix index af58c85..84601d5 100644 --- a/lib/fudo/initrd-network.nix +++ b/lib/fudo/initrd-network.nix @@ -10,10 +10,7 @@ let concatLists = lsts: concatMap (i: i) lsts; gen-sshfp-records-pkg = hostname: pubkey: let - pubkey-file = builtins.writeTextFile { - name = "${hostname}-initrd-ssh-pubkey"; - text = pubkey; - }; + pubkey-file = writeText "${hostname}-initrd-ssh-pubkey" pubkey; in pkgs.stdenv.mkDerivation { name = "${hostname}-initrd-ssh-firngerprint";