feat(krz01): add basic microvm exprs

For a router01.

Signed-off-by: Ryan Lahfa <ryan@dgnum.eu>
This commit is contained in:
Ryan Lahfa 2024-10-08 13:37:39 +02:00
parent 4d689fee33
commit 3aeae4e33f
5 changed files with 32 additions and 0 deletions

View file

@ -9,9 +9,11 @@ lib.extra.mkConfig {
# INFO: This list needs to stay sorted alphabetically
# TODO: re-enable me when #139 is merged. "proxmox"
"nvidia-tesla-k80"
"microvm-router01"
];
extraConfig = {
microvm.host.enable = true;
dgn-hardware = {
useZfs = true;
zfsPools = [

View file

@ -0,0 +1,16 @@
_: {
microvm.autostart = [ "router01" ];
microvm.vms.router01 = {
config = {
networking.hostName = "router01";
microvm.shares = [
{
source = "/nix/store";
mountPoint = "/nix/.ro-store";
tag = "ro-store";
proto = "virtiofs";
}
];
};
};
}