forked from DGNum/infrastructure
feat(krz01): add basic microvm exprs
For a router01. Signed-off-by: Ryan Lahfa <ryan@dgnum.eu>
This commit is contained in:
parent
4d689fee33
commit
3aeae4e33f
5 changed files with 32 additions and 0 deletions
|
@ -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 = [
|
||||
|
|
16
machines/krz01/microvm-router01.nix
Normal file
16
machines/krz01/microvm-router01.nix
Normal 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";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue