Skip to content

Instantly share code, notes, and snippets.

@lightdiscord
Created March 21, 2018 16:05
Show Gist options
  • Save lightdiscord/e4db6ec3c29514f933b79ed615711140 to your computer and use it in GitHub Desktop.
Save lightdiscord/e4db6ec3c29514f933b79ed615711140 to your computer and use it in GitHub Desktop.
Install my nixos configuration on ec2 machine
#!/usr/bin/env bash
cd /etc/nixos
rm configuration.nix
nix-shell -p git --run "git clone git@github.com:LightDiscord/nixos-system.git ."
ln -s machines/ec2.nix configuration.nix
nix-channel --add "https://nixos.org/channels/nixos-unstable"
nixos-rebuild switch --upgrade
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment