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

43 lines
689 B
Nix
Raw Normal View History

2024-06-29 14:40:10 +01:00
{
network = {
name = "lxdBrDefault";
type = "bridge";
config = {
"ipv4.address" = "10.100.1.1/8";
"ipv4.nat" = "true";
};
};
2024-06-29 22:18:42 +01:00
storage_pools = [
{
name = "postgres";
driver = "btrfs";
config.source = "/dev/zd0";
}
{
name = "test";
driver = "btrfs";
config.source = "/dev/zd16";
}
];
2024-06-29 14:40:10 +01:00
profile = {
name = "default";
devices = {
"eth0" = {
name = "eth0";
nictype = "bridged";
parent = "lxdBrDefault";
type = "nic";
};
"root" = {
path = "/";
pool = "default";
size = "8GiB";
type = "disk";
};
};
};
}