# Mic92/sops-nix

Atomic secret provisioning for NixOS based on sops

Repository: https://github.com/Mic92/sops-nix
Canonical: https://ross.abutalabs.com/products/sops-nix
Language: Nix
License: MIT
License Family: permissive
Topics: nixos, sops, hacktoberfest, build-with-buildbot
Last push: 2026-08-23T03:36:54+00:00

## Health v2 (maintenance only)
Score: 67/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 8, longevity 100
- inputs: {"age_days": 2249, "days_push": 10, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3130, forks 229 (observed 2026-08-28T04:07:44.546374+00:00)

## What it is
sops-nix is a NixOS module that provides atomic, declarative secret provisioning based on Mozilla's sops. It decrypts sops-encrypted files (YAML, JSON, dotenv, INI, or binary) at activation time and manages secrets as files with declarative ownership, permissions, and group settings.

## Use cases
- manage server secrets declaratively in nixos configuration
- commit encrypted secrets to git without leaking credentials
- decrypt secrets at activation time using age or gpg keys
- provision secrets for nixos deployments without extra upload steps
- roll back secrets along with nixos system generations
- share encrypted secrets across a team with nix-shell hooks
- use sops secrets in home-manager setups

## When to choose
- you run NixOS and want secrets managed declaratively alongside your configuration
- you need encrypted secrets safely committed to version control
- you want atomic secret upgrades and rollback support with nixos-rebuild, NixOps, krops, or morph
- you prefer age or GPG key-based encryption with optional cloud KMS support

## When to avoid
- you are not using NixOS or Nix-based deployment tooling
- you need a secrets manager for non-Nix environments or dynamic secret generation
- you require official support for cloud KMS backends like AWS KMS or Vault rather than environment-variable workarounds

## Facets
- artifact type: library
- maturity: active
- function: secrets-management, security, configuration-management, deployment, cryptography
- domain: security, infrastructure-as-code, self-hosted, developer-tools
- platform: cli
- tags: nixos, sops, secrets-provisioning, declarative, age-encryption, gpg, home-manager, atomic-upgrades, devops, linux

## Member repositories
- Mic92/sops-nix (main) score 67

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:44.546374+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:26:11.616604+00:00, confidence not recorded.
  - readme: https://github.com/Mic92/sops-nix (fetched 2026-08-28T04:07:44.546374+00:00, sha c02a1013f7b9)
- Data as of 2026-08-30T08:39:29.467469+00:00.
