Browse Source

Update nix-setup.sh

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

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

@@ -1,11 +1,17 @@
curl -s https://gist.githubusercontent.com/theycallmemac/19ac8930570f2d88b645c3d5eab10169/raw/f726cb7c0d1f2dd3c87b89c2a131de845c38e799/configuration.nix > /etc/nixos/configuration.nix
### copy default config file with git to clone repository
curl -s https://gist.githubusercontent.com/theycallmemac/19ac8930570f2d88b645c3d5eab10169/raw/286b1bc05279c056d55a331a92970101132fbc69/configuration.nix > /etc/nixos/configuration.nix
nixos-rebuild switch

### clone repository and copy contents to nixos directory
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

### add home manager channel
nix-channel --add https://github.com/nix-community/home-manager/archive/release-20.09.tar.gz home-manager
nix-channel --update
nixos-rebuild switch

### remove original cloned directory
rm -r /etc/nixos2

Loading…
Cancel
Save