Add a NixOS module #236
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 311 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.344
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #236"
general
weight: 0.35
parkr
Adds a NixOS module to the flake, so radar can be run as a service from Nix in addition to the package the flake already exports. Modeled on the module in parkr/ping.
Features
repomust beowner/name: radar splitsRADAR_REPOon/without checking, so anything else would crash it.hourandtimeZoneset when the day's issue is generated. radar compares-hourto the process's local hour, so the module setsTZexplicitly (defaultUTC, matching the Docker image) and supplies the zone database instead of assuming the host has one. radar checks on a timer that fires every hour from process start, and generates at the first check inside the configured hour;SIGUSR2generates one immediately regardless.environmentFile; the feed's API key is passed as a systemd credential and merged into the feed config at start.feedis set.DynamicUserwith no capabilities (a port below 1024 getsCAP_NET_BIND_SERVICE), a read-only filesystem, restricted address families, and no state of its own. Listens on loopback by default;openFirewallis opt-in.Tests
checks.<linux>.nixos-moduleevaluates the module in minimal systems and asserts on the result, including that invalid values forrepo,hour,timeZone, the senders, the domain and the port are rejected.checks.<linux>.nixos-module-runtimestarts the real binary with the arguments and environment the module generates and checks the schedule log line,/health, and that/feed.atomis gated. The existingNixworkflow runsnix flake checkon PRs.🤖 Generated with Claude Code