mirror of
https://github.com/oddlama/nix-config.git
synced 2025-10-11 07:10:39 +02:00
fix: remove faulty agenix directory early and only if necessary
chore: change default microvm naming scheme to <host>-<name>
This commit is contained in:
parent
43b2bd1982
commit
88f1ac54b8
9 changed files with 30 additions and 29 deletions
|
@ -25,17 +25,18 @@
|
|||
|
||||
boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" "sdhci_pci" "r8169"];
|
||||
|
||||
extra.microvms = {
|
||||
vms.test = {
|
||||
id = 11;
|
||||
extra.microvms.vms = let
|
||||
defineVm = id: {
|
||||
inherit id;
|
||||
system = "x86_64-linux";
|
||||
autostart = true;
|
||||
zfs = {
|
||||
enable = true;
|
||||
pool = "rpool";
|
||||
dataset = "safe/vms/test";
|
||||
mountpoint = "/persist/vms/test";
|
||||
};
|
||||
};
|
||||
in {
|
||||
test = defineVm 11;
|
||||
#hi = defineVm 12;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue