Gate the vhosts without their own sign-in with oauth2-proxy, which signs in with Pocket ID and allows members of the `admins` group. Each gated vhost serves its own `/oauth2/` endpoints with a host-only session cookie, so other `.nul.ie` sites never receive it. Sessions last a week, and a refresh token lets oauth2-proxy check back with Pocket ID every hour without a passkey. Add `my.pocket-id`, which declares Pocket ID groups and OIDC clients in Nix; `pocket-id-sync` applies them through the API with a static API key that nginx keeps from outside requests. This lets apps move to Pocket ID with their client defined next to them, with secrets from `slop secret generate`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
27 lines
639 B
Nix
27 lines
639 B
Nix
{
|
|
nixos.modules = {
|
|
common = ./common.nix;
|
|
user = ./user.nix;
|
|
build = ./build.nix;
|
|
dynamic-motd = ./dynamic-motd.nix;
|
|
tmproot = ./tmproot.nix;
|
|
firewall = ./firewall.nix;
|
|
server = ./server.nix;
|
|
deploy-rs = ./deploy-rs.nix;
|
|
secrets = ./secrets.nix;
|
|
containers = ./containers.nix;
|
|
vms = ./vms.nix;
|
|
network = ./network.nix;
|
|
pdns = ./pdns.nix;
|
|
pocket-id = ./pocket-id;
|
|
gui = ./gui;
|
|
l2mesh = ./l2mesh.nix;
|
|
borgthin = ./borgthin.nix;
|
|
nvme = ./nvme;
|
|
spdk = ./spdk.nix;
|
|
librespeed = ./librespeed;
|
|
paseo-relay = ./paseo-relay.nix;
|
|
netboot = ./netboot;
|
|
};
|
|
}
|