This repo defines NixOS configuration for my hosts.
Symlink the repo to /etc/nixos:
sudo ln -s $(realpath nixos-config) /etc/nixosDeploy the configuration for given host using --flake:
sudo nixos-rebuild switch --flake '/etc/nixos#caspair'If the hostname matches --flake is not necessary.
Some configurations can be deployed using Disko.
You can see an example install.sh script.
Secrets are fetched encrypted using agenix with public Ed25519 keys of hosts.