#!/usr/bin/env bash set -xe export DEBIAN_FRONTEND=noninteractive apt-get update apt-get upgrade -y apt-get install -y git unset DEBIAN_FRONTEND sh <(curl -L https://nixos.org/nix/install) --daemon --yes if [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then . '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' fi nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager nix-channel --update