authentik: init

This commit is contained in:
Grisha Shipunov 2025-01-12 21:32:36 +01:00
parent ea46b0bb1e
commit bd44fc6fcb
12 changed files with 428 additions and 26 deletions

View file

@ -65,6 +65,12 @@
options = [ "zfsutil" ];
};
fileSystems."/var/lib/microvms" = {
device = "zpool/data/var/lib/microvms";
fsType = "zfs";
options = [ "zfsutil" ];
};
swapDevices = [
{
device = "/dev/disk/by-partuuid/7e7d0e0b-90b7-465c-a022-089b38e0f16d";

View file

@ -1,4 +1,5 @@
{ ... }: {
{ ... }:
{
imports = [
./uplink.nix
./uvm.nix

View file

@ -1,8 +1,10 @@
{ ... }: {
{ ... }:
{
# TODO: make a module
systemd.network = {
netdevs."10-uvm-br" = {
netdevConfig = {
Kind = bridge;
Kind = "bridge";
Name = "uvm-br";
};
};
@ -13,7 +15,31 @@
DHCPServer = false;
IPv6SendRA = true;
};
Address = [ ];
addresses = [
{
Address = "10.99.99.1/24";
}
{
Address = "fd12:3456:789a::1/64";
}
];
ipv6Prefixes = [
{
Prefix = "fd12:3456:789a::/64";
}
];
};
networks."11-uvm-br" = {
matchConfig.Name = "uvm-*";
networkConfig.Bridge = "uvm-br";
};
};
networking.nat = {
enable = true;
enableIPv6 = true;
externalInterface = "enp90s0";
internalInterfaces = [ "uvm-br" ];
};
}

10
hosts/minime/uvm.nix Normal file
View file

@ -0,0 +1,10 @@
{ inputs, ... }:
{
microvm.stateDir = "/var/lib/microvms";
microvm.vms = {
authentik = {
flake = inputs.self;
updateFlake = "github:gshipunov/nix-config/master";
};
};
}