Skip to content

repparw/nix

Repository files navigation

NixOS Configuration

Personal NixOS and Home Manager configuration built on the upstream vic/den default-template structure.

Hosts

  • alpha: desktop workstation, media services, gaming, streaming, backup jobs.
  • beta: laptop profile with the shared host baseline plus laptop-specific input, power, and display handling.

Layout

  • flake.nix: generated flake file. Regenerate it with nix run .#write-flake after changing flake-file inputs.
  • modules/defaults.nix: repo-wide den.default and shared host composition.
  • modules/hosts/: host aspects.
  • modules/aspects/: reusable den aspects. Compose these with includes.
  • modules/_services/: NixOS service modules imported by the service aspect.
  • modules/_packages/: local package definitions and service-only packages.
  • modules/checks.nix: flake checks.
  • modules/git-hooks.nix: development shell and pre-commit hooks.
  • knowledge/: OKF-style knowledge bundle for repo architecture, hosts, services, decisions, and runbooks.
  • secrets.yaml: encrypted sops-nix secrets.

Rules

  • Configure generated aspects through den.aspects.<name>.
  • Use includes for aspect composition.
  • Use imports only for real Nix module imports.
  • Put repo-wide defaults in modules/defaults.nix via den.default.
  • Keep related logic together, usually wrapped in the same aspect.
  • Put reusable features in dedicated aspect files.
  • Do not put plaintext secrets in the repo; use sops-nix.

Commands

nix flake show
nix flake check
nh os switch

Knowledge

Repo knowledge lives in knowledge/index.md. It uses markdown files with YAML frontmatter so the docs stay useful for both humans and agents.

Start with these runbooks:

Operational Backlog

Medium Priority

  • Make host-specific hardware and behavior easier to scan by extracting repeated bootloader, filesystem, CPU microcode, and user profile patterns only where the abstraction removes actual duplication.

About

No description, website, or topics provided.

Resources

Stars

3 stars

Watchers

1 watching

Forks

Contributors