infrastructure/proxmox.tjo.cloud/qcow2.nix

19 lines
399 B
Nix
Raw Normal View History

2024-09-01 09:26:09 +00:00
{
lib,
config,
pkgs,
modulesPath,
...
}:
{
system.build.qcow2 = import "${toString modulesPath}/../lib/make-disk-image.nix" {
inherit lib config pkgs;
name = "nixos";
diskSize = "auto";
format = "qcow2-compressed";
partitionTableType = "efi";
copyChannel = true;
configFile = pkgs.writeText "configuration.nix" (pkgs.lib.readFile ./configuration.nix);
};
}