Remove non-flake install script
Alan Pearce alan@alanpearce.eu
Wed, 15 Mar 2023 21:55:42 +0100
D user/install.sh
@@ -1,34 +0,0 @@-#!/bin/sh - -set -eu - -if [ -z "$1" ] -then - echo "Usage: $0 <machine-file.nix>" - exit 1 -fi - -NIXDIR="$HOME/.config/nixpkgs" - -if [ ! -f "$1" ] -then - echo "$1 does not exist" - exit 1 -fi - -if [ -d "$NIXDIR" ] -then - echo "$NIXDIR already exists as a directory!" - ls -l "$NIXDIR" - exit -fi - -if [ -f "$NIXDIR" ] -then - echo "$NIXDIR already exists as a file" - ls -l "$NIXDIR" - exit -fi - -ln -s $PWD $NIXDIR -ln -s $1 home.nix