2 Commits

Author SHA1 Message Date
  James McDermott 7fdd5937af
Update nix-setup.sh 9 months ago
  James McDermott 3f32284f1c
Create nix-setup.sh 9 months ago
1 changed files with 11 additions and 0 deletions
Split View
  1. +11
    -0
      admin-scripts/nix-setup.sh

+ 11
- 0
admin-scripts/nix-setup.sh View File

@@ -0,0 +1,11 @@
curl -s https://gist.githubusercontent.com/theycallmemac/19ac8930570f2d88b645c3d5eab10169/raw/f726cb7c0d1f2dd3c87b89c2a131de845c38e799/configuration.nix > /etc/nixos/configuration.nix
nixos-rebuild switch
git clone https://github.com/theycallmemac/nix-configs /etc/nixos2
pushd /etc/nixos2
git checkout -b ec2 remotes/origin/ec2
cp -R /etc/nixos2/* /etc/nixos/
cp -R /etc/nixos2/.git /etc/nixos/.git
nix-channel --add https://github.com/nix-community/home-manager/archive/release-20.09.tar.gz home-manager
nix-channel --update
nixos-rebuild switch
rm -r /etc/nixos2

Loading…
Cancel
Save