tvl-depot/users/sterni/machines/ingeborg/http/flipdot.openlab-augsburg.de.nix

37 lines
705 B
Nix
Raw Normal View History

{ depot, lib, config, ... }:
let
inherit (depot.users.sterni.external.flipdot-gschichtler)
bahnhofshalle
warteraum
nixosModule
;
in
{
imports = [
nixosModule
./nginx.nix
];
config = {
age.secrets = lib.genAttrs [
"warteraum-salt"
"warteraum-tokens"
]
(name: {
file = depot.users.sterni.secrets."${name}.age";
});
services.flipdot-gschichtler = {
enable = true;
virtualHost = "flipdot.openlab-augsburg.de";
packages = {
inherit bahnhofshalle warteraum;
};
saltFile = config.age.secretsDir + "/warteraum-salt";
tokensFile = config.age.secretsDir + "/warteraum-tokens";
};
};
}