Skip to content
Back to skills

Inject Sops Managed Secrets Into Nixos And Home Manager Configs With Sops Nix

ASecurity

Materialize age or PGP encrypted SOPS secrets inside declarative NixOS and Home Manager systems during activation without hand-copying values.

  • 36 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added June 8, 2026
ai-agentsgogitsecuritydocumentation

Security analysis

A100/100

Scanned June 8, 2026

npx -y skills add agentskillexchange/skills --skill inject-sops-managed-secrets-into-nixos-and-home-manager-configs-with-sops-nix --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Inject Sops Managed Secrets Into Nixos And Home Manager Configs With Sops Nix?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Inject Sops Managed Secrets Into Nixos And Home Manager Configs With Sops Nix
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/agentskillexchange-inject-sops-managed-secrets-into-nixos-and-home-ma/badge)](https://www.skillsdirectory.com/skills/agentskillexchange-inject-sops-managed-secrets-into-nixos-and-home-ma)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: "Inject SOPS-managed secrets into NixOS and Home Manager configs with sops-nix"
slug: "inject-sops-managed-secrets-into-nixos-and-home-manager-configs-with-sops-nix"
description: "Materialize age or PGP encrypted SOPS secrets inside declarative NixOS and Home Manager systems during activation without hand-copying values."
github_stars: 2771
verification: "security_reviewed"
source: "https://github.com/Mic92/sops-nix"
author: "Mic92"
publisher_type: "individual"
category: "Security & Verification"
framework: "Multi-Framework"
tool_ecosystem:
  github_repo: "Mic92/sops-nix"
  github_stars: 2771
---

# Inject SOPS-managed secrets into NixOS and Home Manager configs with sops-nix

Materialize age or PGP encrypted SOPS secrets inside declarative NixOS and Home Manager systems during activation without hand-copying values.

## Prerequisites

NixOS or Home Manager configuration, sops-nix module, SOPS-encrypted secret files, age or PGP keys, Nix build and activation access

## Installation

Requirements and caveats from upstream:
- This will otherwise cause sops to require multiple keys (shamir secret sharing)
- The easiest way to add new machines is by using SSH host keys (this requires OpenSSH to be enabled).
- The home-manager module requires systemd/user as it runs a service called sops-nix.service rather than an activation script.

Basic usage or getting-started notes:
- There is a configuration.nix example in the [deployment step](#deploy-example) of our usage example.
- If you prefer video over the textual description below, you can also checkout this [6min tutorial](https://www.youtube.com/watch?v=G5f6GC7SnhU) by [@vimjoyer](https://github.com/vimjoyer).
- <details>

- Source: https://github.com/Mic92/sops-nix
- Extracted from upstream docs: https://raw.githubusercontent.com/Mic92/sops-nix/HEAD/README.md

## Documentation

- https://github.com/Mic92/sops-nix#readme

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/inject-sops-managed-secrets-into-nixos-and-home-manager-configs-with-sops-nix/)

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.