Remove very old script

This commit is contained in:
Sandro - 2022-06-18 00:28:45 +02:00
parent 75ae094748
commit 3df520cc20
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
1 changed files with 0 additions and 25 deletions

View File

@ -1,25 +0,0 @@
#!/usr/bin/env bash
set -e
REPO=nix-configs
if [ -d $REPO ]; then
cd $REPO
git pull --ff-only
else
git clone https://github.com/c3d2/$REPO.git $REPO
fi
for OLDCFG in /etc/nixos/{hardware-,}configuration.nix; do
if [ -f $OLDCFG ]; then
sudo mv ${OLDCFG}{,.old}
fi
done
sudo ln -s $HOME/$REPO/hosts/`hostname -s`/configuration.nix /etc/nixos/configuration.nix
ls -l /etc/nixos/configuration.nix
if [ -f $REPO/hosts/`hostname -s`/home.nix ]; then
mkdir -p ~/.config/nixpkgs
ln -s $HOME/$REPO/hosts/`hostname -s`/home.nix ~/.config/nixpkgs/home.nix
fi