From 06046469b0f84dbdfc542a6ec9b91442928b98e2 Mon Sep 17 00:00:00 2001 From: Greg Hellings Date: Thu, 21 Aug 2025 18:04:33 -0500 Subject: [PATCH] nixfmt updates --- nix/cache.nix | 33 ++++++++++++++++----------------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/nix/cache.nix b/nix/cache.nix index 3afa799..9f5489b 100644 --- a/nix/cache.nix +++ b/nix/cache.nix @@ -28,22 +28,21 @@ writeShellApplication { go packer ]; - text = - '' - set -o pipefail - function list_isos { - '' - + (concatStringsSep "\n" ( - map (d: '' - url=$(echo var.iso.url | packer console -var-file="${d}" -config-type=hcl2 sources/) - sha=$(echo var.iso.checksum | packer console -var-file="${d}" -config-type=hcl2 sources/) - distro=$(echo var.distro | packer console -var-file="${d}" -config-type=hcl2 sources/) - echo "$url" "$sha" "$distro" - '') (lib.unique (lib.map distroFile active)) - )) - + '' - } + text = '' + set -o pipefail + function list_isos { + '' + + (concatStringsSep "\n" ( + map (d: '' + url=$(echo var.iso.url | packer console -var-file="${d}" -config-type=hcl2 sources/) + sha=$(echo var.iso.checksum | packer console -var-file="${d}" -config-type=hcl2 sources/) + distro=$(echo var.distro | packer console -var-file="${d}" -config-type=hcl2 sources/) + echo "$url" "$sha" "$distro" + '') (lib.unique (lib.map distroFile active)) + )) + + '' + } - list_isos | ${lib.getExe bin} - ''; + list_isos | ${lib.getExe bin} + ''; }