This commit is contained in:
Menno van Leeuwen 2024-02-19 14:01:48 +01:00
parent 69f05d0d0a
commit 2e69ec2246
Signed by: vleeuwenmenno
SSH Key Fingerprint: SHA256:OJFmjANpakwD3F2Rsws4GLtbdz1TJ5tkQF0RZmF0TRE

View File

@ -104,12 +104,15 @@ if [ "$1" == "-i" ] || [ "$1" == "--install" ]; then
# Clone dotfiles
clone_dotfiles
echo 'Nix and dotfiles are installed, running initial home-manager setup...'
bash -c ~/.dotfiles/setup.sh -c
elif [ "$1" == "-c" ] || [ "$1" == "--continue" ]; then
# Run initial home-manager setup
bash -c 'source ~/.dotfiles/setup.sh && home_manager_setup'
home_manager_setup
# Run initial home-manager switch
bash -c "home-manager switch --flake ~/.dotfiles"
echo 'Please restart your shell to continue... (Then run `./setup.sh -c`)'
home-manager switch --flake ~/.dotfiles
echo 'Please restart your shell and enjoy your new environment!'
else
help
fi