forked from fediversity/fediversity
un-generators
Signed-off-by: Kiara Grouwstra <kiara@procolix.eu>
This commit is contained in:
parent
b5d2b2cb87
commit
98d8a91a80
1 changed files with 186 additions and 212 deletions
|
|
@ -286,32 +286,7 @@ let
|
||||||
};
|
};
|
||||||
tf-proxmox-host = mkOption {
|
tf-proxmox-host = mkOption {
|
||||||
description = "A Terraform deployment by SSH to update a single existing NixOS host.";
|
description = "A Terraform deployment by SSH to update a single existing NixOS host.";
|
||||||
# type = submodule (tf-host: {
|
type = submodule (tf-host: {
|
||||||
type = submodule (
|
|
||||||
tf-host:
|
|
||||||
let
|
|
||||||
# raw = {
|
|
||||||
# # formatConfig = "${pkgs.nixos-generators}/share/nixos-generator/formats/raw.nix";
|
|
||||||
# formatConfig = "${pkgs.nixos-generators}/share/nixos-generator/formats/raw-efi.nix";
|
|
||||||
# formatAttr = "raw";
|
|
||||||
# fileExtension = ".img";
|
|
||||||
# };
|
|
||||||
# format = raw;
|
|
||||||
# qcow = {
|
|
||||||
# formatConfig = "${pkgs.nixos-generators}/share/nixos-generator/formats/qcow.nix";
|
|
||||||
# formatAttr = "qcow";
|
|
||||||
# fileExtension = ".qcow2";
|
|
||||||
# };
|
|
||||||
# format = qcow;
|
|
||||||
# qcow-efi = {
|
|
||||||
# formatConfig = "${pkgs.nixos-generators}/share/nixos-generator/formats/qcow-efi.nix";
|
|
||||||
# formatAttr = "qcow-efi";
|
|
||||||
# fileExtension = ".qcow2";
|
|
||||||
# };
|
|
||||||
# format = qcow-efi;
|
|
||||||
# inherit (format) formatConfig fileExtension formatAttr;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
options = {
|
options = {
|
||||||
system = mkOption {
|
system = mkOption {
|
||||||
description = "The architecture of the system to deploy to.";
|
description = "The architecture of the system to deploy to.";
|
||||||
|
|
@ -509,8 +484,7 @@ let
|
||||||
# qemu-img convert -f raw -O qcow2 -C "${machine.config.system.build.image}/${name}.raw" /tmp/${name}.qcow2
|
# qemu-img convert -f raw -O qcow2 -C "${machine.config.system.build.image}/${name}.raw" /tmp/${name}.qcow2
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
});
|
||||||
);
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue