Here is my NixOS/home-manager configuration.
Some highlights:
- Multiple different type hosts (notebook, vps, servers)
- flake.parts as a framework
- colmena for deploying configuration
- ragenix for secret management
- Mesh network via netbird
- WM is hyprland
My current flake structure:
nix
contains basic nix flake configuration like devShell, packages, applications, checks and so on:checks
contains additional checks for pre-commit hook andnix flake check
control
managesmission-control
configurationformatter
configures treefmt parametersshell
manages devShell configurationlib
extends nixpkgs.lib with additional functions
nixos
contains a bunch of configurations for NixOS hostsmachines
contains folders with per host individual configurations like deploy, hardware and network.modules
contains different modules forNixOS
andhome-manager
overlays
is overlays for nixpkgsroles
defines typical small suites used for the configuration of asystem
andhome-manager
modulessecrets
contains age encrypted secrets for hostsusers
manages a basic user configutaions
Inspiration: