dotfiles powered by nix den
README.md

nixdots #

My personal NixOS / home-manager dotfiles, built on den with flake-parts and import-tree.

What this repo does #

It manages my entire desktop config for nightglider, a NixOS machine running the Niri window manager on AMD hardware.

Highlights #

  • Desktop: Niri WM, Stylix with the madotsuki theme, Ghostty terminal, Nushell shell, HeLIum browser, Neovim, btop, fzf, zoxide
  • AI/ML: Optimised llama-cpp with ROCm for local LLM inference
  • Impermanence: Ephemeral root, btrfs subvolumes, and explicit persistence declarations
  • Secrets: SOPS-encrypted secrets per-host via age keys
  • Disk layout: Disko-based declarative partitioning on NVMe
  • VM: Debug VM with virtio-gpu, pre-configured for safe testing

Server & self-hosted features (opt-in) #

copyparty, authelia, cgit, traccar, llamacpp (server), Atproto PDS, lldap, postgres, redis, and more, available as feature aspects.

Extras #

  • Gaming: nix-gaming and nix-minecraft flakes integrated
  • macOS: nix-darwin support
  • Personal projects: cv, nixcats, koito, wrtag, mafurako

Architecture #

modules/
├── meta/          # Framework wiring, overlays, sops, impermanence, nix settings
├── hosts/         # Per-machine config (currently: nightglider)
├── features/      # Opt-in application modules (each is a den aspect)
├── themes/        # Stylix themes (currently: madotsuki)
└── users/         # User account definitions

Aspects are the primary building block. Enable features by adding their aspect name to an includes list in the relevant host or user config. See den docs for the full aspect system.

Getting Started #

Prerequisites #

  • A working Nix with flakes enabled
  • The den framework

Build & Switch #

# Review config in a gallery view
nix run .#igloo

# Apply config to the current machine
nix run .#igloo -- switch

Development with VM #

Recommended for testing without touching your real system:

nix run .#vm

The VM uses virtio_gpu (no AMD hardware needed) and has a plaintext password for easy login. /persist is backed by tmpfs so changes are discarded on shutdown.

Updating #

nix flake update          # update all inputs
nix flake update den      # update just den
nix flake update <name>   # update a specific input

Then regenerate the flake if you changed inputs via the flake-file attrset:

nix run .#write-flake

Formatting #

nix fmt

Testing #

nix flake check

This validates all hosts, not just the current one.

Adding a Feature #

  1. Create modules/features/<name>.nix (or a modules/features/<name>/ directory)
  2. Define den.aspects.<group>.provides.<variant>
  3. Add the aspect name to includes in a host or user config
  4. Build and test

Symlinked Configs #

Some apps (ghostty, nushell, etc.) use dots.lib.symlinked to live-edit config files directly in the repo, no rebuild needed. Only active on hosts where the symlink resolves (currently: nightglider).