blob: a7b71a662c8e303af99cdb80da44569d63d286fc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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);
}
]
|