Adding maistro

This commit is contained in:
Lyes Saadi 2025-12-13 01:35:46 +01:00
parent 480e54f8a4
commit 4237fd0925
Signed by: lyes
GPG key ID: 55A1D803917CF39A
2 changed files with 59 additions and 0 deletions

View file

@ -0,0 +1,50 @@
{ ... }:
{
virtualisation.incus.enable = true;
virtualisation.incus.ui.enable = true;
networking.nftables.enable = true;
networking.firewall.trustedInterfaces = [ "incusbr0" ];
virtualisation.incus.preseed = {
networks = [
{
config = {
"ipv4.address" = "10.0.100.1/24";
"ipv4.nat" = "true";
};
name = "incusbr0";
type = "bridge";
}
];
profiles = [
{
devices = {
eth0 = {
name = "eth0";
network = "incusbr0";
type = "nic";
};
root = {
path = "/";
pool = "default";
size = "32GiB";
type = "disk";
};
};
name = "default";
}
];
storage_pools = [
{
config = {
source = "/var/data/incus/storage-pools/default";
};
driver = "dir";
name = "default";
}
];
};
# Dirty hack, should be done through kanidm when setting up unix things
users.users.lyes.extraGroups = ["incus-admin"];
}