mirror of
https://github.com/oddlama/nix-config.git
synced 2025-10-11 07:10:39 +02:00
feat: add automatic zfs persistent dataset management to microvms
This commit is contained in:
parent
2b4449569f
commit
70f7ef3023
5 changed files with 166 additions and 91 deletions
|
@ -30,6 +30,12 @@
|
|||
macOffset = config.lib.net.mac.addPrivate nodeSecrets.networking.interfaces.lan.mac;
|
||||
in {
|
||||
test = {
|
||||
zfs = {
|
||||
enable = true;
|
||||
pool = "rpool";
|
||||
dataset = "safe/vms/test";
|
||||
mountpoint = "/persist/vms/test";
|
||||
};
|
||||
autostart = true;
|
||||
mac = macOffset "00:00:00:00:00:11";
|
||||
macvtap = "lan";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue