Adding maistro
This commit is contained in:
parent
480e54f8a4
commit
4237fd0925
2 changed files with 59 additions and 0 deletions
9
modules/server/README.md
Normal file
9
modules/server/README.md
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
- `baba` : Nextcloud (`cloud.lyes.eu`)
|
||||||
|
- `biggoron` : Forgejo (`git.lyes.eu`)
|
||||||
|
- `giovanni` : Vaultwarden (`vault.lyes.eu`)
|
||||||
|
- `kaepora` : PostgreSQL
|
||||||
|
- `kalif` : Factorio (`factorio.lyes.eu`)
|
||||||
|
- `link` : Kanidm (`auth.lyes.eu`)
|
||||||
|
- `maistro` : Incus
|
||||||
|
- `nayru` : Komga/Manga (`manga.lyes.eu`)
|
||||||
|
- `taf` : Mail (`taf.lyes.eu`/`mail.lyes.eu`)
|
||||||
50
modules/server/maistro/default.nix
Normal file
50
modules/server/maistro/default.nix
Normal 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"];
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue