nixos/hosts/common/optional/lxd/profiles/default.nix

43 lines
689 B
Nix

{
network = {
name = "lxdBrDefault";
type = "bridge";
config = {
"ipv4.address" = "10.100.1.1/8";
"ipv4.nat" = "true";
};
};
storage_pools = [
{
name = "postgres";
driver = "btrfs";
config.source = "/dev/zd0";
}
{
name = "test";
driver = "btrfs";
config.source = "/dev/zd16";
}
];
profile = {
name = "default";
devices = {
"eth0" = {
name = "eth0";
nictype = "bridged";
parent = "lxdBrDefault";
type = "nic";
};
"root" = {
path = "/";
pool = "default";
size = "8GiB";
type = "disk";
};
};
};
}