mirror of
https://github.com/nix-community/disko.git
synced 2026-12-01 21:43:29 +01:00
apply treefmt
This commit is contained in:
1 parent
049d1bd952
commit
b32f0e2876
15 files changed
+279
-257
No files matched your search
@@ -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}
|
||||
|
||||
Reference in new issue
Block a user