Files
rpqt 9f19287909
buildbot/nix-eval evaluation succeeded in 1m 15s (2 warnings)
buildbot/nix-build 26 attributes built
Nix Flake Check / check (pull_request) Successful in 4m27s
gitea-mq/Nix Flake Check / check (push) In progress
gitea-mq/buildbot/nix-eval evaluation succeeded in 19s (2 warnings)
gitea-mq/buildbot/nix-build 26 attributes built
gitea-mq Merge queue passed
services/punchcard: configure nginx reverse proxy
2026-09-02 20:10:03 +02:00
..
2026-08-17 04:01:07 +00:00
2026-04-13 13:27:46 +02:00

Punchcard

Simple daily time tracking webapp with OIDC authentication.

Usage with a clan IdP (e.g. Authelia)

When an OIDC identity provider like Authelia is in your clan, punchcard auto-registers as an OIDC client via the auth export type. No manual client secret management needed.

inventory.instances = {
  punchcard = {
    module.input = "clan-community";
    module.name = "punchcard";
    roles.default.machines.my-server.settings = {
      publicHost = "punchcard.example.com";
      oidcIssuerUrl = "https://auth.example.com";
    };
  };
};

Usage with an external OIDC provider

Set clientId and clientSecretFile to use an external provider (e.g. Google, Auth0, Keycloak) that is not part of your clan.

inventory.instances = {
  punchcard = {
    module.input = "clan-community";
    module.name = "punchcard";
    roles.default.machines.my-server.settings = {
      publicHost = "punchcard.example.com";
      oidcIssuerUrl = "https://accounts.google.com";
      clientId = "my-google-client-id";
      clientSecretFile = "/run/secrets/punchcard-oidc-secret";
    };
  };
};

Roles

default

Single punchcard server instance. When clientSecretFile is not set (default), the service exports auth.client and auth.varsGenerator so an OIDC identity provider (e.g. Authelia) can auto-aggregate the client registration and generate the secret.