modules

Create and modify NixOS and Home-Manager modules for declarative system configuration.

18|1|Updated Jun 2, 2023
One-click install
npx skills add https://github.com/DaRacci/nix-config --skill modules
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: modules
Source: https://github.com/DaRacci/nix-config/tree/main/.opencode/skills/modules
Command: npx skills add https://github.com/DaRacci/nix-config --skill modules

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill simplifies the creation, modification, and organization of custom NixOS and Home-Manager modules, streamlining your system configuration workflow.

Core Features & Use Cases

  • Module Creation: Provides templates and guidance for building new NixOS and Home-Manager modules.
  • Module Structure: Explains standard module patterns and common namespaces.
  • Use Case: You need to add a new custom service to your NixOS configuration. This Skill guides you through creating the module file, defining its options, and integrating it into your system.

Quick Start

Use the modules skill to create a new NixOS module for a custom service.

Frequently Asked Questions about modules

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

FAQPage Schema
How do I create a custom NixOS module for a new service?

To create a NixOS module, define the module file structure, declare custom options, and integrate systemd services into your declarative system configuration. This process streamlines adding new features to your system.

What is the standard structure for Home-Manager modules?

Home-Manager modules follow standard module patterns using common namespaces to manage user-specific features. This structure allows you to declaratively configure user-level environments and services consistently.

Do I need to know Nix language syntax to write NixOS modules?

Yes, understanding Nix language syntax and module patterns is required. This knowledge is necessary to properly define custom options and integrate systemd services within your declarative configuration.

Can I integrate systemd services into my Home-Manager configuration?

Yes, you can integrate systemd services into your Home-Manager configuration by building a custom module. This allows you to manage user-specific services declaratively alongside your other system configurations.

What's the best way to organize custom NixOS modules?

The best way to organize custom NixOS modules is using standard module patterns and common namespaces. This simplifies the creation and modification of modules, streamlining your system configuration workflow.

How do I define custom options in a NixOS module?

To define custom options in a NixOS module, use standard Nix language syntax within the module file structure. This enables you to parameterize your declarative system configuration and integrate custom services effectively.