After install and rebooting
nix-channel --add https://nixos.org/channels/nixos-unstable nixos-unstable
nix-channel --update nixos-unstable
mkdir -p /media/secret
mount /dev/disk/by-label/PRIVATE /media/secret
nix-shell -p git vim
mv /etc/nixos /etc/nixos.install
git clone https://github.com/jonaswouters/nixos-configuration /etc/nixos
cp /etc/nixos.install/hardware-configuration.nix /etc/nixos/
ln -sr /etc/nixos/machines/$MACHINE/configuration.nix /etc/nixos/configuration.nix
ssh-agent bash -c 'ssh-add /media/secret/.ssh/id_rsa; git submodule update --init --recursive -j 8'
Lenovo Thinkpad X1 Carbon 2018
nixos-rebuild build
passwd jonaswouters
su - jonaswouters
cp -R /media/secret/.aws ~/
cp -R /media/secret/.ssh ~/
cp -R /media/secret/.gnupg ~/
chmod 700 ~/.ssh
chmod -R 600 ~/.ssh/id_rsa*
sudo chown -R jonaswouters /etc/nixos/
cd /etc/nixos/
git remote set-url origin [email protected]:jonaswouters/nixos-configuration.git