feat: integrate rollback sentinel as systemd-boot NixOS module #69
Reference in New Issue
Block a user
No description provided.
Delete Branch "feat/rollback-sentinel-on-fresh-branch"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Integrates the NixOS boot sentinel as a proper NixOS module with systemd services. Completes the sentinel pipeline:
t_671e2809(service tiers defined) →t_969d6a73(rollback script shipped) → this PR.Changes
modules/nixos/services/rollback-sentinel.nix(new) — NixOS module exposing:tier1Services— failure triggers rollback (default: sshd, docker, traefik, authelia)tier2Services— warn only (default: all other stack services)tier3InfoServices— log-only infobootDelay— seconds after multi-user.target before check (default: 120)rollbackMode— set-default (safe, next boot), rollback-now (immediate), or dry-runenablePostRebuild— run sentinel after every nixos-rebuild (default: true)Systemd services created:
nixos-rollback.shon failuremodules/nixos/services/nixos-rollback.sh(new) — systemd-boot generation rollback script, embedded at evaluation timeflake.nix— wired the module into lazyworkhorse NixOS configurationRollback flow
Build & Deploy
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.