Fix restore.sh - don't delete hw config

This commit is contained in:
askiiart 2023-12-28 19:09:13 -06:00
parent 1a11adff62
commit 4a2200e076
Signed by untrusted user who does not match committer: askiiart
GPG key ID: BC3800E55FB54D67

View file

@ -1,8 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
SCRIPT_LOCATION=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd) SCRIPT_LOCATION=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)
sudo rm -rf /etc/nixos/*
sudo mkdir /etc/nixos/
sudo cp -r $SCRIPT_LOCATION/etc-nixos/* /etc/nixos/ sudo cp -r $SCRIPT_LOCATION/etc-nixos/* /etc/nixos/
sudo rm -rf $HOME/.config/home-manager/ sudo rm -rf $HOME/.config/home-manager/