NixOS friendly hosters: Difference between revisions
imported>Volth mNo edit summary |
imported>Volth |
||
Line 19: | Line 19: | ||
== Hoster-agnostic means of installation == | == Hoster-agnostic means of installation == | ||
1. Upload a prepared closure to the victim server running Debian or Centos (you have to use rsync, nix-copy-closure won't copy to the server which has no nix), then run "touch /etc/NIXOS; $toplevel/bin/switch-to-configuration boot; reboot". There are several tools for making this easier: nix-infect, ... | 1. Upload a prepared closure to the victim server running Debian or Centos (you have to use rsync, nix-copy-closure won't copy to the server which has no nix), then run "touch /etc/NIXOS; $toplevel/bin/switch-to-configuration boot; reboot". There are several tools for making this easier: nix-infect, ... | ||
2. Turn any running Linux system into NixOS without reboot, using kexec, ... | 2. Turn any running Linux system into NixOS without reboot, using kexec, ... |