Skip to content

About

this is a mirror from codeberg: https://codeberg.org/kidskoding/nixos-config

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

nixos logo

nixos-config

my nixos config that sets up my entire machine via flakes and home-manager

NixOS unstable CI niri catppuccin macchiato

fastfetch

more screenshots ✨
clean desktop launcher
clean desktop launcher
control center myx and cava
control center myx and cava
zen browser and obsidian nautilus and zathura
zen browser and obsidian nautilus and zathura
neovim in zellij btop and lazygit in zellij
neovim in zellij btop and lazygit in zellij
overview
overview

contents

what's inside

compositor niri
shell / bar noctalia
theme catppuccin/nix macchiato 🐈, with stylix for fonts and the rest
terminal ghostty, fish, starship, zellij
editor neovim nightly (kidskoding.nvim), evil-helix as backup
secrets sops-nix 🤫
disks disko
layout dendritic, with flake-parts and import-tree

machines

host what it is config
thinkpad-e16g5 my daily driver, amd graphics modules/hosts/thinkpad.nix
victus16 gaming laptop, also for cuda. hybrid intel + nvidia (prime offload) modules/hosts/victus.nix

layout

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

home groups

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

where to edit

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

rebuilding

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.

templates

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

About

this is a mirror from codeberg: https://codeberg.org/kidskoding/nixos-config

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages