Hacker GitHub

← All repos

nix-community/nixos-anywhere

View on GitHub ↗ ★ 3,546 Shell

Install NixOS everywhere via SSH [maintainers=@Mic92 @Lassulus @phaer @Enzime @a-kenji]

15 mentions on Hacker News by 10 people: 2 stories, 13 comments · first 2023-04-02 · latest 2026-03-24

Mentions per year 15 mentions · busiest year 2023 (6)
20082026
  1. Sounds cursed. But I'm not judging, given that I use nixos-anywhere[0] on an almost weekly basis. [0] https://github.com/nix-community/nixos-anywhere
  2. …alternative is to “infect” a VM running in whatever cloud and convert it into a NixOS VM in-place: https://github.com/nix-community/nixos-anywhere In fact, it is a common practice to use the latter to install NixOS on new machines. You…
  3. …and it's done through nixos-anywhere, which will install it[0] to the ram unfortunately. [0]: https://github.com/nix-community/nixos-anywhere/blob/abb0d72...
  4. …different distribution, though the installation part itself would obviously need to be adapted. [0] https://github.com/nix-community/nixos-anywhere
  5. And for cloud/dedicated servers perhaps https://github.com/nix-community/nixos-anywhere (There's also a terraform module ) And for state changes https://github.com/serokell/deploy-rs Or Colmena /nixops/ and x other For secret handling…
  6. …similar (?) to install NixOS in-place on a remote machine (using kexec “magic” under the hood). https://github.com/nix-community/nixos-anywhere I tried it on a Hetzner VPS and was honestly pretty surprised that it even worked. What makes…
  7. …keys, Telegraf, Nginx with LetsEncrypt certs, and automatic OS upgrades. No Ansible needed :) See: https://github.com/nix-community/nixos-anywhere
  8. I think they're referring to this implementation: https://github.com/nix-community/nixos-anywhere but cleverca22's work is solid as well there's also the earlier https://github.com/elitak/nixos-infect and the built-in NIXOS_LUSTRATE:…
  9. …ps://www.youtube.com/watch?v=wr22CyoyRo4 [2]: https://www.youtube.com/watch?v=nlX8g0NXW1M&t=952s [3]: https://github.com/nix-community/nixos-anywhere
  10. …a VPS on Hetzner Cloud[2] if you want to see what the process looks like in real-time. [1]: https://github.com/nix-community/nixos-anywhere [2]: https://www.youtube.com/watch?v=wr22CyoyRo4
    comment by bsnnkv · 2023-11-12 · in An Overview of Nix in Practice
  11. ▲ 3
    NixOS-anywhere: install NixOS everywhere via SSH
    story by c0balt · 2023-09-25 · 0 comments
  12. …including disk formatting is now purely declarative. [0] https://github.com/nix-community/disko [1] https://github.com/numtide/nixos-anywhere
    comment by Cu3PO42 · 2023-08-22 · in Impermanence
  13. …process, if your provider isn't as cool as Linode and won't let you boot arbitrary ISOs: https://github.com/numtide/nixos-anywhere Building images directly for cloud vendors' platforms on your local system and then pushing them up and…
  14. …the target's existing OS with your nixOS config, all with a single command. Incredible. [1] https://github.com/numtide/nixos-anywhere
  15. ▲ 4
    NixOS-anywhere: install NixOS everywhere via SSH
    story by ingve · 2023-04-02 · 0 comments