/new-machine

A collection of scripts for setting up machines

Primary LanguageShellMIT LicenseMIT

new-machine

A purely functional declaration of my machines using NixOS

Quick start

  1. Download NixOS 20.09
  2. Boot into installer
  3. If you're behind a proxy, run the steps specified below
  4. Run install script with, replacing <machine-name> with a machine in /hosts
curl -s "https://raw.githubusercontent.com/rameezk/new-machine/master/install.sh" > "$HOME/install.sh && chmod +x "$HOME/install.sh" && "$HOME/install.sh <machine>"

Corporate Proxy

If you're behind a corporate proxy you will need to do the following.

  1. Create a proxy file with vim ~/.proxyrc
  2. Add the following
proxy="http://username:password@host:port"

export http_proxy=$proxy
export https_proxy=$proxy
  1. Source the file with source ~/.proxyrc

References

  1. Based heavily off the work here. I chose to start from scratch, instead of just forking, because I wanted to learn NixOS (and flakes).