mirror of
https://github.com/Misterio77/Foundry.git
synced 2026-08-24 10:04:09 -05:00
Port modules/nixos/hydra-auto-upgrade.nix to the system-manager side as modules/system-manager/hydra-auto-upgrade.nix, exposed via a new outputs.systemManagerModules and imported by the common/global base. The script (cached-system-manager) mirrors cached-nixos-rebuild, adapted to system-manager's model: there is no /run/current-system active pointer and no boot-time reactivation, so the registered profile (/nix/var/nix/profiles/system-manager-profiles/system-manager) is the single source of truth. Only 'diff' and 'switch' actions; switch does register-profile + activate (the CLI's switch = both, atomically). Not enabled anywhere yet. Assisted-by: pi (claude-opus-4-8)