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

44 lines
749 B
Nix
Raw Permalink Normal View History

2024-06-29 14:40:10 +01:00
{
network = {
name = "lxdBrDefault";
type = "bridge";
config = {
2024-06-30 20:16:17 +01:00
"ipv4.address" = "10.100.2.1/8";
2024-06-29 14:40:10 +01:00
"ipv4.nat" = "true";
2024-06-30 12:25:44 +01:00
"ipv4.firewall" = "false";
2024-06-29 14:40:10 +01:00
};
};
2024-06-29 22:18:42 +01:00
storage_pools = [
{
name = "postgres";
driver = "btrfs";
2024-06-30 12:25:44 +01:00
config.source = "/dev/zvol/zspeed/postgres";
2024-06-29 22:18:42 +01:00
}
{
2024-06-30 20:16:17 +01:00
name = "lxc";
2024-06-29 22:18:42 +01:00
driver = "btrfs";
2024-06-30 20:16:17 +01:00
config.source = "/dev/zvol/zspeed/lxc";
2024-06-29 22:18:42 +01:00
}
];
2024-06-29 14:40:10 +01:00
profile = {
2024-06-30 20:16:17 +01:00
name = "default";
2024-06-29 14:40:10 +01:00
devices = {
"eth0" = {
name = "eth0";
nictype = "bridged";
parent = "lxdBrDefault";
type = "nic";
};
"root" = {
path = "/";
pool = "default";
size = "8GiB";
type = "disk";
};
};
};
}