Skip to content

Commit

Permalink
feat: create default incus config
Browse files Browse the repository at this point in the history
  • Loading branch information
misumisumi committed Mar 17, 2024
1 parent 71be22a commit a408e8d
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions apps/virtualisation/incus/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,49 @@
incus = {
enable = true;
startTimeout = 300;
preseed = {
networks = [
{
description = "Default Incus network";
config = {
"ipv4.address" = "10.0.100.1/24";
"ipv4.nat" = "true";
};
name = "incusbr0";
type = "bridge";
}
];
profiles = [
{
description = "Default Incus profile";
devices = {
eth0 = {
"name" = "eth0";
"nictype" = "bridged";
"parent" = "incusbr0";
"type" = "nic";
};
root = {
"path" = "/";
"pool" = "default";
"type" = "disk";
};
};
name = "default";
}
];
storage_pools = [
{
config = {
size = "16GiB";
source = "/var/lib/incus/disks/default.img";
};
description = "Default Incus storage";
name = "default";
driver = "btrfs";
}
];
};
};
};
}

0 comments on commit a408e8d

Please sign in to comment.