forked from CCCHH/nix-infra
Initial commit. Add configuration for NixOS Proxmox image
This commit is contained in:
commit
4193e65a04
14 changed files with 321 additions and 0 deletions
22
config/nixos-generators/proxmox.nix
Normal file
22
config/nixos-generators/proxmox.nix
Normal file
|
@ -0,0 +1,22 @@
|
|||
# Sources for this configuration:
|
||||
# - https://github.com/NixOS/nixpkgs/blob/069de7d3deafab651fd627c8f6d7e4c7b33087a2/nixos/modules/virtualisation/proxmox-image.nix#L6
|
||||
# - https://git.grzb.de/yuri/nix-infra/-/blob/aa38daeea59f2ca12b7e591de6f8b61565780c48/configuration/nixos-generators/default.nix#L13
|
||||
# - https://git.grzb.de/yuri/nix-infra/-/blob/aa38daeea59f2ca12b7e591de6f8b61565780c48/flake.nix#L39
|
||||
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
proxmox = {
|
||||
qemuConf = {
|
||||
boot = "order=virtio0";
|
||||
cores = 2;
|
||||
memory = 512;
|
||||
bios = "seabios";
|
||||
net0 = "virtio=00:00:00:00:00:00,bridge=vmbr0,firewall=1,tag=999";
|
||||
};
|
||||
qemuExtraConf = {
|
||||
cpu = "cputype=host,flags=+aes";
|
||||
template = 1;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue