My nixos configurations
BSD-3-CLAUSE License
My NixOS configuration flake.
This is my personal config, please be inspired and copy from it as needed!
home
: Home manager configuration settingshosts
: Per host machine flake settingsmodules
: Custom module configuration imported by host, home, other modulesSecrets are encrypted with sops-nix for deploying to multiple hosts.
Please see Vimjoyer's Excellent Video in addition to the sops-nix
documentation.
Nix Helper makes running flake updates quick. nh os switch
. Setting the flake in the config makes executing it direct. No need to specify the flake path. Read the example config for details.
colmena is used to deploy to multiple machines either individually by host or by group of tags.
colmena apply switch --on <host>
colmena apply switch --on @tag
mkdir -p ~/.config/sops/age/keys.txt
nix-shell -p age --run "age-keygen -o ~/.config/sops/age/keys.txt"
.sops.yaml
nix-shell -p sops --run "sops updatekeys secrets/secrets.yaml"
BonusPlay/sysconf, a random repo I found that had a nice layout, and used colemna for managing multiple hosts.