authentik-nix/components/staticWorkdirDeps.nix
WilliButz d060292aa6
add patch to fix failing "tenant_files" migration
The new migration in tenant_files.py references a MEDIA_ROOT directory
based on its own path, which in our case is in the read-only /nix/store.

We need it to refer to the actual authentik state directory instead,
which defaults to /var/lib/authentik/media in module.nix
2024-02-21 22:12:02 +01:00

24 lines
752 B
Nix

{ authentik-src
, authentikComponents
, linkFarm
, applyPatches
}:
let
patched-src = applyPatches {
src = authentik-src;
name = "patched-authentik-source";
patches = [
./authentik_media_upload.patch
./authentik_media_tenant_files_miration.patch
];
};
in
linkFarm "authentik-static-workdir-deps" [
{ name = "authentik"; path = "${patched-src}/authentik"; }
{ name = "locale"; path = "${authentik-src}/locale"; }
{ name = "blueprints"; path = "${authentik-src}/blueprints"; }
{ name = "internal"; path = "${authentik-src}/internal"; }
{ name = "lifecycle"; path = "${patched-src}/lifecycle"; }
{ name = "schemas"; path = "${authentik-src}/schemas"; }
{ name = "web"; path = authentikComponents.frontend; }
]