nixos-modules

Create NixOS module definitions for services and system settings.

1|Updated Apr 4, 2026
One-click install
npx skills add https://github.com/Jylhis/claude-marketplace --skill nixos-modules-jylhis
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nixos-modules
Source: https://github.com/Jylhis/claude-marketplace/tree/main/plugins/nix-dev/skills/nixos-modules
Command: npx skills add https://github.com/Jylhis/claude-marketplace --skill nixos-modules-jylhis

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Many NixOS users struggle to write correct module files, understand option types, merge functions, and systemd unit definitions, leading to configuration errors.

Core Features & Use Cases

  • Provides a concise reference for NixOS module structure, arguments, and option types.
  • Explains merge functions like mkIf, mkMerge, and priority overrides such as mkDefault and mkForce.
  • Shows common configuration patterns for services, systemd units, users, groups, and networking.
  • Guides file layout and module imports for building reproducible configurations.

Quick Start

Ask the skill to generate a basic NixOS module that enables a custom service with a default port.

Frequently Asked Questions about nixos-modules

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

FAQPage Schema
How do I create a custom NixOS module to configure a systemd service?

To create a custom NixOS module, define options with mkOption and apply configurations using mkIf. This generates reliable systemd unit definitions and system settings.

How do mkMerge and mkDefault priority overrides work in NixOS configuration?

mkMerge combines multiple configuration blocks, while priority overrides like mkDefault and mkForce resolve conflicts by setting precedence. They ensure declarative system configurations.

Can I use NixOS modules to manage settings in Home Manager and nix-darwin?

Yes, NixOS module definitions apply to building configuration.nix, custom modules, and option management for NixOS, Home Manager, and nix-darwin environments.

What is the correct structure for a NixOS module with mkEnableOption?

A NixOS module uses mkEnableOption to define a boolean toggle and mkIf to conditionally apply system settings. This structure creates reproducible configuration files.

Why does my NixOS module configuration throw a type error with mkOption?

mkOption type errors occur when assigned values mismatch declared types. Specifying correct option types and using mkMerge properly prevents configuration errors in module files.