My configs for NixOS
Checkout repo and set up symlink from /etc/nixos to the config for the system. E.g.
sudo mv /etc/nixos/configuration.nix /etc/nixos/configuration.original
sudo ln -s /home/kieren/projects/nixos/systems/<system>/configuration.nix /etc/nixos/configuration.nix
cp /etc/nixos/hardware-configuration.nix /home/kieren/projects/nixos/systems/<system>/hardware-configuration.nix
cd /etc/nixos
sudo nixos-rebuild
sudo nix-collect-garbage --delete-older-than 60d
sudo nix-channel --update
sudo nixos-rebuild boot
sudo nix-channel --add https://channels.nixos.org/nixos-<version> nixos
sudo nix-channel --update
cd /etc/nixos
sudo nixos-rebuild boot
reboot
$ sudo nix-channel --add https://github.com/NixOS/nixos-hardware/archive/master.tar.gz nixos-hardware
$ sudo nix-channel --update
If system requires Citrix, first download the required .tar.gz file and run the following command before the installation. Note that the version must match exactly the version listed on the nixos.org package.
nix-prefetch-url file:/path/to/file.tar.gz