- Nix 94%
- CSS 4%
- Shell 2%
- JavaScript <1%
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-cppwith 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-gamingandnix-minecraftflakes integrated - macOS:
nix-darwinsupport - 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 #
- Create
modules/features/<name>.nix(or amodules/features/<name>/directory) - Define
den.aspects.<group>.provides.<variant> - Add the aspect name to
includesin a host or user config - 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).