A web app lists pending requests with full detail, leases and the audit log grouped by request, and sends Web Push notifications that can answer requests. Approvers sign in through an OpenID Connect provider; policy can require a fresh passkey (`confirm = "passkey"`) to approve, which only the web app can then give. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
24 lines
694 B
Nix
24 lines
694 B
Nix
# The development environment: `devenv shell`, or direnv with `.envrc`. The package, modules and
|
|
# checks are in `flake.nix`.
|
|
{ pkgs, ... }:
|
|
{
|
|
languages.rust.enable = true;
|
|
|
|
# `pkg-config` with OpenSSL for Web Push's payload encryption and SQLite for the web app's
|
|
# sessions, `git` for the builder's tests
|
|
packages = with pkgs; [ pkg-config openssl sqlite git nixpkgs-fmt ];
|
|
|
|
scripts = {
|
|
vm-test = {
|
|
description = "Run the NixOS VM test of the broker module (needs KVM)";
|
|
exec = ''nix build -L --no-link "$DEVENV_ROOT#checks.x86_64-linux.vm" "$@"'';
|
|
};
|
|
};
|
|
|
|
# `devenv test`
|
|
enterTest = ''
|
|
cargo clippy --all-targets -- -D warnings
|
|
cargo test
|
|
'';
|
|
}
|