agentsclimarketplace

Nix patterns

Skill ComeOnOliver/skillshub/skills/aiskillstore/marketplace/edgarpost/nix-patterns

NixOS module patterns. Use when creating or editing NixOS/home-manager modules, adding packages, or configuring programs.From its SKILL.md

Install
npx -y skills add ComeOnOliver/skillshub --skill nix-patterns

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

SKILL.md

0.8 KB, 206 tokens by cl100k_base, as published. Nobody here has run it

NixOS Module Patterns

Directory structure

  • modules/home/*.nix - Home-manager modules (user packages, dotfiles)
  • modules/nixos/*.nix - NixOS modules (system services)
  • hosts/*/ - Machine-specific configuration
  • home/default.nix - Main home-manager entry point

Adding packages

home.packages = with pkgs; [
  package-name
] ++ lib.optionals (stdenv.hostPlatform.system == "x86_64-linux") [
  x86-only-package
];

Creating a module

{ pkgs, ... }:
{
  home.packages = with pkgs; [ mypackage ];
  xdg.configFile."app/config.json".text = builtins.toJSON { setting = "value"; };
}

Import in home/default.nix:

imports = [ ../modules/home/mymodule.nix ];

What ships with it

8.2 KB alongside SKILL.md

GitHub clipped this repository’s file list, so this is at least 1 file and may be more.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.