diff options
| author | Grisha Shipunov | 2026-07-26 20:32:54 +0000 |
|---|---|---|
| committer | Grisha Shipunov | 2026-07-26 20:32:54 +0000 |
| commit | c771b71197571454e496e7ece01dcfd5dff8171f (patch) | |
| tree | 1ff5796caceb1a1d4e82a8c72753aefa4aed39ac /microvms/auth/default.nix | |
| parent | 1ce66ae49e995b1dce2ad801de200f241459459c (diff) | |
authentik: yeetscaledown
Diffstat (limited to 'microvms/auth/default.nix')
| -rw-r--r-- | microvms/auth/default.nix | 78 |
1 files changed, 0 insertions, 78 deletions
diff --git a/microvms/auth/default.nix b/microvms/auth/default.nix deleted file mode 100644 index 734ef43..0000000 --- a/microvms/auth/default.nix +++ /dev/null @@ -1,78 +0,0 @@ -{ config, lib, ... }: -let - mac = "02:00:00:00:00:01"; -in -{ - imports = [ - ./authentik.nix - ]; - sops.defaultSopsFile = ./secrets.yaml; - sops.age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ]; - - sops.secrets = { - "wg/0xa-proxy" = { - owner = config.users.users.systemd-network.name; - }; - }; - - microvm = { - hypervisor = "cloud-hypervisor"; - vsock.cid = 3 + 1; - mem = 2 * 1024; - vcpu = 2; - interfaces = [ - { - type = "tap"; - id = "uvm-auth"; - mac = mac; - } - ]; - shares = [ - { - source = "/nix/store"; - mountPoint = "/nix/.ro-store"; - tag = "store"; - proto = "virtiofs"; - socket = "store.socket"; - } - ] - ++ - map - (dir: { - source = dir; - mountPoint = "/${dir}"; - tag = dir; - proto = "virtiofs"; - socket = "${dir}.socket"; - }) - [ - "etc" - "var" - "home" - ]; - }; - - networking.useNetworkd = true; - networking.firewall.enable = lib.mkForce false; # firewalling done by the host - - systemd.network = { - enable = true; - networks."11-host" = { - matchConfig.MACAddress = mac; - networkConfig = { - Address = "10.99.99.11/24"; - DHCP = "no"; - }; - routes = [ - { - Gateway = "10.99.99.1"; - Destination = "0.0.0.0/0"; - Metric = 1024; - } - ]; - }; - }; - - networking.hostName = "auth"; - system.stateVersion = "24.11"; -} |
