all repos — nixfiles @ e204add2f6900d93a1d3ba6536f371c619eae614

System and user configuration, managed by nix and home-manager

remove channel root more carefully (could be a symlink)

Alan Pearce
commit

e204add2f6900d93a1d3ba6536f371c619eae614

parent

a46864566b13b61bddd9b0ee15457efa288ec3de

1 file changed, 6 insertions(+), 2 deletions(-)

jump to
M bin/home-managerbin/home-manager
@@ -30,8 +30,12 @@ echo "user home-manager configuration folder $hm_config_dir does not exist, creating it"
mkdir -p $hm_config_dir end if test -e $channel_root - rm $channel_root/* || exit 1 - rmdir $channel_root + if test ! -L $channel_root + rm $channel_root/* || exit 1 + rmdir $channel_root + else + rm $channel_root || exit 1 + end end end