My personal nixos config
- Download and flash the NixOS minimal iso to an installation media drive
- Boot into the installation media and switch to the root user:
sudo su
- Read tmpfs as root for an understanding of how the general config works and how to mount the filesystems in a tmpfs as root setup
- Mount the filesystems as specified in the article above
- Connect to the internet:
sudo systemctl start wpa_supplicant
thenwpa_cli
- Run
nix-shell -p git nixFlakes
- Now that you are in an environment with git and flakes, clone this repository
- Exit the nix shell with
exit
change into the cloned directory, and runnix-shell
- Run
sudo git config --global --add safe.directory $(pwd)
- Run
sudo nixos-install --option pure-eval no --flake $FLAKE#desktop
- Read "Installing NixOS with root on tmpfs and encrypted ZFS on a netcup VPS" for more insight on root on tmpfs + ZFS setup
- Set up SSH access
- Set
services.openssh.settings.PermitRootLogin = "yes"
in the config - Follow the instructions in the NixOS wiki to create an SSH key and copy it to the server
- Append the key to the
authorizedKeys
lists in the config