Files
nix/README.md
2026-03-05 11:06:06 -06:00

3.4 KiB

nix

my nixos configuration, structured with den and flake-parts.

structure

outputs = inputs: inputs.flake-parts.lib.mkFlake { inherit inputs; } (inputs.import-tree ./modules);

modules are automatically discovered via import-tree and composed using den.aspects.

modules/
├── core/          # System fundamentals (desktop, audio, graphics, network, theme)
├── hosts/         # Per-machine includes (nix, styx, box)
├── infra/         # Infrastructure (syncthing, cloudflared tunnels)
├── services/      # Self-hosted services (searxng, gitea, copyparty, ...)
├── software/      # User software (firefox, nixcord, beets, ...)
└── users/         # User accounts

hosts

Host Role GPU Switch Command
nix desktop nvidia nh os switch ~/nix --impure -H nix
styx laptop amd nh os switch ~/nix --impure -H styx
box homeserver nh os switch ~/nix --impure -H box

self-hosted services

all services on box are proxied through cloudflared tunnels to *.bug.tools.

Service URL Description
searxng search.bug.tools Privacy-respecting metasearch engine
redlib reddit.bug.tools Private Reddit frontend (disabled)
copyparty files.bug.tools File server / uploader
gitea git.bug.tools Self-hosted Git with org mirrors
glances monitor.bug.tools System monitoring
nixos-mailserver mail.bug.tools Email server
invidious tube.bug.tools YouTube frontend (disabled)
matrix matrix.bug.tools Matrix homeserver (disabled)
sish tuns.bug.tools SSH tunnels (disabled)
vscode-server Remote VS Code access

flake inputs

Input Purpose
nixpkgs (unstable) Package set
home-manager User environment management
flake-parts Flake structure
den Dendritic aspect system
import-tree Auto module discovery
stylix System-wide theming
catppuccin/nix Catppuccin theme modules
nixcord Declarative Vesktop/Discord
nix-flatpak Declarative Flatpak
copyparty File server

TODO

fix matrix server fix invidious instance fix redlib instance configure cosmic with home