Skip to content

Conversation

@lschuermann
Copy link
Contributor

@lschuermann lschuermann commented Nov 15, 2025

By allowing users to optionally force using systemd unit-based activation, they can inject dependencies on other services or mountpoints (for instance, when the age key is not stored on the root file system).

This is effectively the same PR as #855, but with a defaultText option added. I've managed to reproduce the original reported issue (using documentation.nixos.includeAllModules = true;), and with this PR sops-nix evaluates even with this option set.

Closes #856

By allowing users to optionally force using systemd unit-based
activation, they can inject dependencies on other services or
mountpoints (for instance, when the age key is not stored on the root
file system).
@lschuermann lschuermann force-pushed the dev/systemd-activation-option branch from 4cd511f to b2cddb0 Compare November 16, 2025 22:48
@lschuermann lschuermann marked this pull request as ready for review November 17, 2025 14:51
@lschuermann
Copy link
Contributor Author

@Mic92 Sorry for all the noise. @sedlund confirmed that this patch doesn't break evaluation any more, so I think this should be good to go.

I tried extending one of the existing NixOS tests with the respective documentation.nixos settings that caused this breakage, but have not been able to reproduce this issue in there---I guess something causes the docs to not be built in the test derivations.

@Mic92 Mic92 merged commit e3aa381 into Mic92:master Nov 17, 2025
5 checks passed
@lschuermann lschuermann deleted the dev/systemd-activation-option branch November 17, 2025 20:31
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.

"error: attribute 'systemd' missing" in commit b80c966e70fa0615352c9596315678df1de75801

3 participants