bin: remove ~/.config/nixpkgs if it's a broken symlink
Alan Pearce alan@alanpearce.eu
Wed, 22 May 2024 18:14:59 +0200
1 files changed, 4 insertions(+), 0 deletions(-)
jump to
M bin/home-manager → bin/home-manager
@@ -19,6 +19,10 @@ end for i in 1 if test ! -d $user_nixpkgs + if test ! -e $user_nixpkgs && test -L $user_nixpkgs + echo "~/.config/nixpkgs is a broken symlink, deleting it" + rm $channel_root + end echo "user nixpkgs folder $user_nixpkgs does not exist, creating it" mkdir -p $user_nixpkgs end