Cleanup install.sh

This commit is contained in:
Kevin Kandlbinder 2023-05-25 15:49:24 +02:00
parent 21f421847b
commit db96e44549
Signed by: kevin
GPG key ID: 1460B586646E180D

View file

@ -11,18 +11,10 @@ DIR=$( cd -P "$( dirname "$SOURCE" )" >/dev/null 2>&1 && pwd )
echo "Installing NixOS..."
#if [ -d /etc/nixos/ssh ]; then
# echo "Directory /etc/nixos/ssh exists - skipping."
#else
# sudo ln -s $DIR/../ssh /etc/nixos/ssh || echo "Could not link ssh assets"
#fi
pushd $DIR
sudo nixos-rebuild switch --flake '..#'
popd
#sudo cp -r $DIR/../* /etc/nixos/ || echo "Could not copy modules"
echo "Done."