nix: check the policy at build time and the config before a switch

Store-path policy: check policy -f in system.checks.
Pre-switch: check all as the headscale user. Offline, no DB copy.

Fixes #2898
This commit is contained in:
Kristoffer Dalby committed 2026-11-07 21:25:44 +00:00
1 parent 66a50a1241
commit b6ba6e42ee
5 files changed
+306 -7

No files matched your search

+1 -1
View File
@@ -49,4 +49,4 @@ jobs:
if: steps.changed-files.outputs.nix == 'true' || steps.changed-files.outputs.go == 'true'
run: |
echo "Running NixOS module integration test..."
nix build .#checks.x86_64-linux.headscale -L --fallback
nix build .#checks.x86_64-linux.headscale .#checks.x86_64-linux.headscale-checks -L --fallback