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
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.