about summary refs log blame commit diff
path: root/users/sterni/machines/ingeborg/http/flipdot.openlab-augsburg.de.nix
blob: c86956a0a473556f14dc4a172a1020a0c3b0d5ec (plain) (tree)



































                                                               
{ 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";
    };
  };
}