Mic92/sops-nix
Atomic secret provisioning for NixOS based on sops
Recommended between 2026-01-13 and 2026-01-31. Last pushed 2026-11-01.
▲ 2 recommend · ▼ 0 criticisms
What hackers say
“I would strongly recommend sops-nix[0].”
— c0balt, 2026-01-31 · strong recommendation · original comment on Hacker News ↗
show original comment
I would strongly recommend sops-nix[0]. Pair this with ssh-to-age/ssh-to-gpg for the keys for each server. We are using this at $work for multiple servers, one notable advantages is that it works in teams (for multiple people) and git (and also gitops). For remote installations nixos-anywhere is great. deploy-rs or colemna is fine, nixos-rebuild with `--target-host` is also working well for us however. [0]: https://github.com/Mic92/sops-nix/issues
“you can add either use https://github.com/Mic92/sops-nix or https://github.com/ryantm/agenix to make it possible to manage files which have content that should not be public.”
— nbpname, 2026-01-13 · original comment on Hacker News ↗
show original comment
…ns provided by others, and this single line illustrates this point extremely well as `sops` is not yet part of NixOS. Secret management would likely come in NixOS in the future, but in the mean time you can add either use https://github.com/Mic92/sops-nix or https://github.com/ryantm/agenix to make it possible to manage files which have content that should not be public. Other package managers also provide some abstraction over the packages, and would likely see the same systemd configuration abstracted the same way in post-install scripts. Yet, the encrypted file for `rclone.conf` would come as a static path in `/etc`. You could resume NixOS as having moved the post-install script logic …
Badge for your README
[](https://hackerrepos.org/repo/mic92/sops-nix)
Alternatives hackers mention
- ryantm/agenix ▲ 1