more screenshots ✨
|
|
 |
 |
| clean desktop |
launcher |
 |
 |
| control center |
myx and cava |
 |
 |
| zen browser and obsidian |
nautilus and zathura |
 |
 |
| neovim in zellij |
btop and lazygit in zellij |
 |
|
| overview |
|
the config is split by feature, not by machine. every .nix file under
modules/ loads on its own, and each one adds its settings to a named group,
like flake.homeModules.dev. a machine is just a list of the groups it wants!
to see which group a file belongs to, peek at its first few lines.
.
├── configuration.nix system settings every laptop gets (nixosModules.base)
├── home.nix home packages and settings every machine gets (homeModules.base)
├── modules/
│ ├── base.nix plugs configuration.nix and home.nix into base
│ ├── hosts/ nixos machines: their groups and facts
│ ├── dev.nix, theme.nix, … one-file features
│ ├── niri/, shell/, git/, … bigger features: default.nix plus helper files
│ └── settings.nix nix settings and binary caches
├── hosts/ hardware-configuration.nix and disko.nix per laptop
├── templates/ flake templates for new projects
└── scripts/ rebuild helpers
| group |
what's in it |
used by |
base |
shell, git, cli tools, theme |
every machine |
dev |
every language, neovim, helix (or dev-core plus dev-rust, dev-web, …) |
picked per machine |
agents |
coding agents and their config |
picked per machine |
desktop, niri |
gui apps, fonts, compositor, clipboard |
both laptops |
gaming |
games 🎮 |
victus |
| to change… |
edit |
| a plain package or on/off program every machine gets |
home.nix |
| a tool with its own settings |
the file for its group |
| a binary cache, so packages download prebuilt instead of compiling |
my.caches in the file whose packages need it |
| what a laptop gets |
the modules list in modules/hosts/<host>.nix |
rebuild.sh formats the nix files you changed and switches to the new system.
if the switch works, it commits and pushes too:
~/nixos/scripts/rebuild.sh # thinkpad-e16g5
HOST=victus16 ~/nixos/scripts/rebuild.sh # victus16
the rebuild fish alias runs the right one on each laptop, and every rebuild
also pushes neovim config changes over to
kidskoding.nvim.
ci checks formatting with alejandra and taplo, then evaluates both laptops.
starting points for new projects! each one builds the project with nix
straight from its lockfile.
| template |
language |
lockfile |
crane |
rust |
Cargo.lock |
gomod2nix |
go |
go.sum |
uv2nix |
python |
uv.lock |
bun2nix |
bun |
bun.lock |
pnpm2nix |
pnpm |
pnpm-lock.yaml |
bundix |
ruby |
Gemfile.lock |
gradle2nix |
gradle |
gradle.lock |
elm2nix |
elm |
elm.json |
nix flake init -t git+https://codeberg.org/kidskoding/nixos-config#crane