Skip to content

feat(module): sourceos-syncd NixOS module + builder-aarch64 wiring - #166

Merged
mdheller merged 1 commit into
mainfrom
feat/sourceos-syncd-module
Jun 16, 2026
Merged

feat(module): sourceos-syncd NixOS module + builder-aarch64 wiring#166
mdheller merged 1 commit into
mainfrom
feat/sourceos-syncd-module

Conversation

@mdheller

Copy link
Copy Markdown
Contributor

Summary

  • modules/nixos/sourceos-syncd/default.nix: declarative NixOS module for the sync daemon and post-boot health check.
    • sourceos.syncd.enable: starts sourceos-syncd.service (auto-restart, sourceos-syncd system user).
    • All Katello parameters configurable via NixOS options. katelloPasswordFile supports SOPS-managed credential injection.
    • sourceos.syncd.healthCheck.enable: wires a one-shot sourceos-health-check.service triggered 120s post-boot. Calls sourceos-syncd sync check-health; on failure runs sourceos-boot rollback execute.
  • flake.nix: exposes nixosModules.sourceos-syncd; wires it into builder-aarch64.
  • hosts/builder-aarch64/default.nix: enables daemon with local Katello defaults. katelloPasswordFile is left commented — set via sops-nix before first activation.

Test plan

  • nix flake check passes
  • nixos-rebuild build --flake .#builder-aarch64 builds without errors on device
  • systemctl status sourceos-syncd shows running after boot
  • systemctl status sourceos-health-check.timer shows active

- modules/nixos/sourceos-syncd/default.nix: declarative systemd service for
  the sync daemon + post-boot health-check timer with auto-rollback on failure.
  Supports katelloPasswordFile for SOPS-managed credential injection.
- flake.nix: exposes nixosModules.sourceos-syncd; wires it into builder-aarch64.
- hosts/builder-aarch64/default.nix: enables sourceos.syncd with local Katello
  defaults, 300s poll, health-check with rollback-on-failure after 120s.
  katelloPasswordFile placeholder left commented — set via sops-nix before
  first activation.
@mdheller
mdheller merged commit 7c97a9e into main Jun 16, 2026
@mdheller
mdheller deleted the feat/sourceos-syncd-module branch June 16, 2026 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant