Understand Cachix push modes: Daemon vs Store Scan
masterThe action supports two modes for pushing store paths to the cache, controlled by the useDaemon option.
Daemon mode (default)
Registers a post-build hook with Nix. Newly built store paths are pushed as they are built. Limitation: Nix does not trigger the hook for substituted paths. Security Note: Post-build hooks may run as root if the nix-daemon is root. Evaluate risks if running untrusted code.
Store scan mode
Looks for differences in the store at the file system level. It captures all store paths, including those substituted. Warning: This is not safe for multi-user stores as you may inadvertently upload and leak store paths built by other users. Prefer daemon mode for multi-user stores.