A purely functional declaration of my machines using NixOS
- Download NixOS 20.09
- Boot into installer
- If you're behind a proxy, run the steps specified below
- 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>"
If you're behind a corporate proxy you will need to do the following.
- Create a proxy file with
vim ~/.proxyrc
- Add the following
proxy="http://username:password@host:port"
export http_proxy=$proxy
export https_proxy=$proxy
- Source the file with
source ~/.proxyrc
- Based heavily off the work here. I chose to start from scratch, instead of just forking, because I wanted to learn NixOS (and flakes).