NixOS Infect
- Copy SSH key to root user
sudo mkdir /root/.ssh
sudo cp ~/.ssh/authorized_keys /root/.ssh
Update CA-Certificates (due to Let's Encrypt CA)
Download and run the infect script
curl https://raw.githubusercontent.com/elitak/nixos-infect/master/nixos-infect | bash -x
- Get environment with git
nix-shell -p git
Get repo
Install home-manager
nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager
nix-channel --update
Copy repo to
/etc/nixos
Install system
nixos-rebuild switch
- Cleanup system
nix-collect-garbage -d