Another thing I see is the following error
Failed to connect to socket /run/user/1000/bus: Connection refused
This is what I run
sudo -E nixos-rebuild switch --flake '.#envy' --upgrade --target-host admin@10.0.0.11 --use-remote-sudo ─╯
building the system configuration...
copying 0 paths...
Shared connection to 10.0.0.11 closed.
Shared connection to 10.0.0.11 closed.
activating the configuration...
setting up /etc...
sops-install-secrets: Imported /etc/ssh/ssh_host_rsa_key as GPG key with fingerprint 79b4c50908dc85c291768c1303484cb5a00916e3
sops-install-secrets: Imported /etc/ssh/ssh_host_ed25519_key as age key with fingerprint age1fyvzwcvfv2s3s9jr7hdpkkdc3fup65rksgeu9uahvntnrvg243fs4lm0qz
/nix/store/6pqncin1i2wy8xqy627q6pk5si6yqhpg-sops-install-secrets-0.0.1/bin/sops-install-secrets: failed to decrypt '/nix/store/bahn27fgkz958ri94xq866ydv97656qp-secrets.yaml': Error getting data key: 0 successful groups required, got 0
Activation script snippet 'setupSecrets' failed (1)
Failed to run activate script
reloading user units for admin...
Error: Failed to open dbus connection
Caused by:
Failed to connect to socket /run/user/1000/bus: Connection refused
restarting sysinit-reactivation.target
the following new units were started: NetworkManager-dispatcher.service
Shared connection to 10.0.0.11 closed.
warning: error(s) occurred while switching to the new configuration