27 lines
594 B
Nix
27 lines
594 B
Nix
# SPDX-FileCopyrightText: 2024 Ryan Lahfa <ryan.lahfa@dgnum.eu>
|
|
#
|
|
# SPDX-License-Identifier: EUPL-1.2
|
|
|
|
_: {
|
|
microvm.autostart = [ "ml01" ];
|
|
microvm.vms.ml01 = {
|
|
config = {
|
|
networking.hostName = "ml01";
|
|
system.stateVersion = "24.11";
|
|
microvm = {
|
|
hypervisor = "cloud-hypervisor";
|
|
vcpu = 4;
|
|
mem = 4096;
|
|
balloonMem = 2048;
|
|
shares = [
|
|
{
|
|
source = "/nix/store";
|
|
mountPoint = "/nix/.ro-store";
|
|
tag = "ro-store";
|
|
proto = "virtiofs";
|
|
}
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|