aboutsummaryrefslogtreecommitdiffstats
path: root/apps/authelia/integration.nix
diff options
context:
space:
mode:
Diffstat (limited to 'apps/authelia/integration.nix')
-rw-r--r--apps/authelia/integration.nix15
1 files changed, 15 insertions, 0 deletions
diff --git a/apps/authelia/integration.nix b/apps/authelia/integration.nix
new file mode 100644
index 0000000..a7b71a6
--- /dev/null
+++ b/apps/authelia/integration.nix
@@ -0,0 +1,15 @@
+{ appConfig, lib, ... }: lib.mkMerge [
+ {
+ port = 9091;
+ }
+ {
+ container.extraFlags = [
+ "--load-credential jwtSecret:/etc/nixos/${appConfig.jwtSecret}"
+ "--load-credential sessionSecret:/etc/nixos/${appConfig.sessionSecret}"
+ "--load-credential storageEncryptionKey:/etc/nixos/${appConfig.storageEncryptionKey}"
+ ] ++ (lib.mapAttrsToList
+ (username: args:
+ "--load-credential ${args.username}.password:/etc/nixos/${args.passwordFile}")
+ appConfig.users);
+ }
+]