NixOS configuration of all my computers / servers using flakes.
Currently managing configuration for 3 computers and 2 servers.
Structure is heavily inspired by Vimjoyer's videos.
I'm still new to the nix ecosystem, so you might see some slop, but it works for me.
Highlights
- Secret encryption with sops-nix
- Homelab servers configuration with k0s Kubernetes
- Daily automated flake updates with change reporting
- Epic Gnome and Thunderbird configurations
- Some custom packages
Reinstall tips
nixos-rebuild switch --flake [...] before doing this, else nix-daemon will crash and you'll have to reboot to a previous generation!
- On the new host
- Generate a new
agekey:nix-shell -p age mkdir -p ~/.config/sops/age age-keygen -o ~/.config/sops/age/keys.txt
- Update the
modules/system/.sops.yamlfile with the new key directly in GitHub
- Generate a new
- On an existing host
- Run
cd nixos/modules/system && sops updatekeys secrets.yaml - Commit & push
- Run
- On the new host
- Pull the repo
You may now use the flake to rebuild.