nixos

Manage NixOS configurations and flake-driven workflows across multi-repo architectures.

Updated May 19, 2024
One-click install
npx skills add https://github.com/kettleofketchup/dotfiles --skill nixos-kettleofketchup
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nixos
Source: https://github.com/kettleofketchup/dotfiles/tree/main/.claude/skills/nixos
Command: npx skills add https://github.com/kettleofketchup/dotfiles --skill nixos-kettleofketchup

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill consolidates NixOS and Nix Flakes expertise to simplify creating, testing, and maintaining declarative configurations across multi-repo architectures, including airgapped deployments and cross-repo tooling.

Core Features & Use Cases

  • Flake-driven configuration: manage inputs, outputs, and overlays across multiple repos.
  • NixOS modules & home-manager integration: compose system and user configurations cleanly.
  • DevShells, packaging, and OCI image patterns: reusable shells and packaging workflows for consistent environments.

Quick Start

Use this skill to bootstrap a minimal multi-repo NixOS setup by creating a flake.nix with a nixosConfigurations entry and a simple devShell, then run nix flake show to verify structure.

Frequently Asked Questions about nixos

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I manage NixOS configurations across multiple repositories?

Manage multi-repo NixOS configurations by defining inputs, outputs, and overlays within a root flake.nix file. This approach orchestrates modules across separate repositories, ensuring declarative consistency throughout your architecture.

How do I integrate home-manager with NixOS flakes?

Integrate home-manager with NixOS flakes by adding it as a flake input and wiring it into your nixosConfigurations. This lets you compose user-level configurations alongside system modules cleanly within the same flake structure.

What is the best way to create reproducible devShells using Nix flakes?

Create reproducible devShells by defining a devShell output in your flake.nix. This specifies exact build dependencies and environment variables, guaranteeing consistent development environments across different machines and team members.

Can NixOS flakes be used for airgapped deployments?

Yes, NixOS flakes support airgapped deployments by allowing you to pre-evaluate flake closures and copy required store paths to an offline machine. This ensures declarative systems can be deployed without active internet access.

How do I package OCI images using NixOS?

Package OCI images using NixOS by leveraging Nix's build tools to create reproducible container images directly from your flake outputs. This workflow ensures the container environment exactly matches your declarative system configuration.

Does this Skill help with Nix language syntax for custom nixos-modules?

Yes, this Skill covers Nix language syntax and flake patterns required to write custom nixos-modules. It helps you structure module options and configurations correctly for clean composition within your flake outputs.