sops-nix/modules/sops
r-vdp 6f5fe8036b
sops-install-secrets: call systemctl directly when run as a systemd unit
When useSystemdActivation is enabled, sops-install-secrets.service runs
ordered Before=sysinit-reactivation.target, which switch-to-configuration
restarts *after* it has already consumed /run/nixos/activation-*-list.
Writing to those files from the service therefore does nothing on the
current switch and leaks into the next one.

NixOS 26.05 also deprecates the activation-list mechanism, printing a
warning whenever the files exist, with removal planned for 26.11.

Detect systemd invocation via INVOCATION_ID and call systemctl directly
(try-restart / try-reload-or-restart, --no-block to avoid deadlocking
the sysinit transaction). The legacy activation-script path keeps
writing the list files for backward compatibility.
2026-03-30 15:49:09 +02:00
..
secrets-for-users sops-install-secrets: call systemctl directly when run as a systemd unit 2026-03-30 15:49:09 +02:00
templates add uid and gid to templates 2025-03-17 20:29:15 +01:00
default.nix sops-install-secrets: call systemctl directly when run as a systemd unit 2026-03-30 15:49:09 +02:00
manifest-for.nix fix home-manager module 2025-03-17 10:54:23 +01:00
with-environment.nix reformat code base with nixfmt 2024-11-17 12:22:59 +01:00