+++ date = "2022-11-01T13:11:21+00:00" lastmod = "2022-11-01T13:12:21+00:00" tags = [ "linux" ] author = "tdro" +++ I feel sorta conflicted about [my posted notes](https://www.thedroneely.com/posts/nixops-towards-the-final-frontier/) on [`nixops`](https://nixops.readthedocs.io/en/latest/overview.html) because shortly after that I discovered [nixos-rebuild](https://www.mankier.com/8/nixos-rebuild) had remote deploys. Now nixos-rebuild itself is just a [bash script](https://github.com/NixOS/nixpkgs/blob/28dae620b2132d836f998a83b98e4b59ba5c5e4c/pkgs/os-specific/linux/nixos-rebuild/nixos-rebuild.sh) and taking a peek inside is well, you know.. enlightening. There's even a [NixOS](https://nixos.org/download.html#download-nixos) deployment tool written [in just nix](https://github.com/pinpox/lollypops#readme). I use nixos-rebuild... ```shell {caption="Build locally, deploy remotely"} nixos-rebuild switch \ --target-host "nix@remote.host" \ --build-host "localhost" \ --no-build-nix ```