diff options
| author | Grigory Shipunov | 2025-01-14 21:24:05 +0000 |
|---|---|---|
| committer | Grigory Shipunov | 2025-01-19 19:21:43 +0000 |
| commit | 5c3f0886e592ff2d3e3a8588ab496f36c19e0ce9 (patch) | |
| tree | 53593dfbed713fe889cd533c1bd38506c1a09bfa /microvms/authentik/default.nix | |
| parent | 2f2318aaaa6745cdf3a58142b988b2550bf6b952 (diff) | |
yeet authentik, add keycloak and radicale
Diffstat (limited to 'microvms/authentik/default.nix')
| -rw-r--r-- | microvms/authentik/default.nix | 79 |
1 files changed, 0 insertions, 79 deletions
diff --git a/microvms/authentik/default.nix b/microvms/authentik/default.nix deleted file mode 100644 index badb384..0000000 --- a/microvms/authentik/default.nix +++ /dev/null @@ -1,79 +0,0 @@ -{ config, lib, ... }: -let - mac = "02:00:00:00:00:01"; -in -{ - imports = [ - ./authentik.nix - ]; - - sops.defaultSopsFile = ../../secrets/authentik/secrets.yaml; - sops.age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ]; - - sops.secrets = { - "wg/0xa-proxy" = { - owner = config.users.users.systemd-network.name; - }; - "authentik/envfile" = { }; - }; - - microvm = { - hypervisor = "qemu"; - mem = 2 * 1024; - vcpu = 2; - interfaces = [ - { - type = "tap"; - id = "uvm-authentik"; - 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.10/24"; - DHCP = "no"; - }; - routes = [ - { - Gateway = "10.99.99.1"; - Destination = "0.0.0.0/0"; - Metric = 1024; - } - ]; - }; - }; - - networking.hostName = "authentik"; - system.stateVersion = "24.11"; -} |
