Skip to content

WillPower3309/nixos-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nixos-config

My personal nixos config

Installation

  1. Download and flash the NixOS minimal iso to an installation media drive
  2. Boot into the installation media and switch to the root user: sudo su
  3. 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
  4. Mount the filesystems as specified in the article above
  5. Connect to the internet: sudo systemctl start wpa_supplicant then wpa_cli
  6. Run nix-shell -p git nixFlakes
  7. Now that you are in an environment with git and flakes, clone this repository
  8. Exit the nix shell with exit change into the cloned directory, and run nix-shell
  9. Run sudo git config --global --add safe.directory $(pwd)
  10. Run sudo nixos-install --option pure-eval no --flake $FLAKE#desktop

Additional Steps for the Server Flake

  1. Read "Installing NixOS with root on tmpfs and encrypted ZFS on a netcup VPS" for more insight on root on tmpfs + ZFS setup
  2. Set up SSH access
  3. Set services.openssh.settings.PermitRootLogin = "yes" in the config
  4. Follow the instructions in the NixOS wiki to create an SSH key and copy it to the server
  5. Append the key to the authorizedKeys lists in the config