apply treefmt

This commit is contained in:
Jörg Thalheim authored and mergify[bot] committed 2023-08-11 08:45:46 +00:00
1 parent 049d1bd952
commit b32f0e2876
15 files changed
+279 -257

No files matched your search

+9 -6
View File
@@ -55,12 +55,15 @@ let
${systemToInstall.config.system.build.nixos-install}/bin/nixos-install --system ${systemToInstall.config.system.build.toplevel} --keep-going --no-channel-copy -v --no-root-password --option binary-caches ""
'';
QEMU_OPTS = lib.concatMapStringsSep " " (disk: "-drive file=${disk.name}.raw,if=virtio,cache=unsafe,werror=report") (lib.attrValues nixosConfig.config.disko.devices.disk);
in {
pure = pkgs.vmTools.runInLinuxVM (pkgs.runCommand name {
buildInputs =dependencies;
inherit preVM QEMU_OPTS;
memSize = 1024;
} builder);
in
{
pure = pkgs.vmTools.runInLinuxVM (pkgs.runCommand name
{
buildInputs = dependencies;
inherit preVM QEMU_OPTS;
memSize = 1024;
}
builder);
impure = diskoLib.writeCheckedBash { inherit checked pkgs; } name ''
set -efu
export PATH=${lib.makeBinPath dependencies}