Back to list
DaRacci

project-structure

by DaRacci

An idiots nix config

17🍴 0📅 Jan 24, 2026

SKILL.md


name: project-structure description: Navigate the nix-config repository layout and find files

Project Structure

Directory Layout

flake.nix           # Top-level flake definitions
flake/
  dev/              # Development shell, CI scripts, formatting
  ci/               # CI-specific flake and scripts
  home-manager/     # Home-Manager flake module
  nixos/            # NixOS flake module

modules/            # Reusable module fragments
  home-manager/     # Home-Manager specific modules
  nixos/            # NixOS specific modules

lib/                # Shared Nix functions and helpers
  builders/         # System and home builders (mkSystem, mkHome)

overlays/           # Nixpkgs overlays
pkgs/               # Custom packages and package sets

hosts/              # Per-machine NixOS configurations
  shared/
    global/         # Applied to ALL hosts
    optional/       # Optional features (gaming, containers, etc.)
  desktop/          # Desktop machines
    shared/         # Shared across all desktops
    <machine>/      # Machine-specific config
  laptop/           # Laptop machines
    shared/
  server/           # Server machines
    shared/
    <machine>/

home/               # User-specific Home-Manager configurations
  shared/           # Shared across all users
    global/         # Applied to all users
    applications/   # Application configs
    desktop/        # Desktop environment configs
    features/       # Feature modules (cli, etc.)
  <user>/           # User-specific configs
    <machine>.nix   # Machine-specific overrides
    os-config.nix   # OS config applied to all machines
    hm-config.nix   # Home-Manager entry point

docs/               # Project documentation

Key Files

FilePurpose
flake.nixFlake inputs and outputs
flake.lockLocked input versions
.sops.yamlSOPS encryption rules
state.versionNixOS state version
lib/builders/mkSystem.nixHost system builder
lib/builders/home/mkHome.nixHome configuration builder
modules/nixos/default.nixNixOS module exports
modules/home-manager/default.nixHome-Manager module exports
pkgs/default.nixCustom package registry
overlays/default.nixOverlay definitions

Finding Things

  • Host config: hosts/<type>/<hostname>/default.nix
  • User config: home/<username>/hm-config.nix
  • User on host: home/<username>/<hostname>.nix
  • NixOS module: modules/nixos/<category>/<name>.nix
  • HM module: modules/home-manager/<category>/<name>.nix
  • Custom package: pkgs/<package-name>/default.nix
  • Secrets: hosts/<type>/<hostname>/secrets.yaml or home/<user>/secrets.yaml

Score

Total Score

60/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon