Browse Source

Create nix-setup.sh

master
James McDermott 9 months ago
committed by GitHub
parent
commit
3f32284f1c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      admin-scripts/nix-setup.sh

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

@@ -0,0 +1,8 @@
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/
nixos-rebuild switch
rm -r /etc/nixos2

Loading…
Cancel
Save