This is my NixOS flake, including all my system dotfiles and settings.
It contains configurations for multiple host systems, and is split into nixos modules and home-manager modules, which are then imported from each host according to it's needs.
Shell scripts built from the flake at https://github.com/joinemm/bin
zeus
- Desktop workstation/gaming pcx1
- Thinkpad X1 Carbon gen11 work laptopmonitoring
- Grafana and prometheus server for monitoring my servershetzner
- Syncthing central sync node and webserver
For a given host
nixos-rebuild switch --flake .#$HOST
This goes for cloud hosts like hetzner. The target server needs to have passwordless sudo for the user you log in as.
nixos-rebuild switch --flake .#$HOST --use-remote-sudo --target-host $IP