There. One less papercut. github.com/nix-communit...
github.comfeat: add hostname change detection by zimbatm · Pull Request #591 · nix-community/srvosNixOS is just too easy to deploy to the wrong host. Eg:
nixos-rebuild --flake .#wronghostname --target-host root@otherhost switch
It happened to me a few times, and when I started talking about it...
Did you ever deploy your NixOS configuration to the wrong host? It happened to me a few times. Luckily it's easy to revert but it can cause downtime and state folders to be left around.
0 reposts2 likes