No description
- Nix 93.1%
- CSS 6.9%
| docs | ||
| hosts | ||
| modules | ||
| pkgs | ||
| .gitignore | ||
| flake.lock | ||
| flake.nix | ||
| README.md | ||
| statix.toml | ||
nixos-config
My Nix configurations: NixOS daily driver plus nix-darwin for the MacBook. Shared Home Manager modules (nixvim, git, shell, apps) are reused across both hosts.
Hosts
| Host | Machine | Details |
|---|---|---|
suda |
Ryzen 7 8845HS / Radeon 780M mini PC | NixOS, Niri + Noctalia desktop |
melica |
MacBook Pro 13" 2020 (M1) | nix-darwin + Home Manager |
Repository layout
modules/
system/ — core system: boot, users, networking, nix settings
hardware/ — hardware enablement and drivers
services/ — background services and daemons
desktop/ — graphical environment (compositor, shell, theme)
apps/ — user-facing applications
gaming/ — gaming stack
dev/ — development tooling and repo checks
hosts/<host>/ — host composition and hardware config
pkgs/ — custom package derivations
docs/ — installation, maintenance, troubleshooting, per-host pages
Common commands
nix fmt . # format
nix flake check # lint + format + dead-code checks
# NixOS (suda)
sudo nh os switch # build and switch (or: sudo nixos-rebuild switch --flake .#suda)
# macOS (melica)
darwin-rebuild switch --flake .#melica # first run: nix run nix-darwin -- switch --flake .#melica
# update inputs
nix flake update
sudo nh os switch # then rebuild each host
Rollback (suda): pick a previous generation from the GRUB boot menu, or
sudo nixos-rebuild switch --rollback.
Rollback (melica): darwin-rebuild switch --rollback.
Documentation
- docs/installation.md — reinstall procedure
- docs/maintenance.md — updates, rollback, GC, pinned packages, gotchas
- docs/troubleshooting.md — common failures
- docs/hosts/suda.md — suda facts and quirks
- docs/hosts/melica.md — melica facts and quirks