specify the hostname from the setup in the setup, since the hostname is not set yet we must use a local one!

This commit is contained in:
2024-11-02 21:14:56 +01:00
parent 7134d0c29d
commit 9802e61876
2 changed files with 3 additions and 3 deletions

View File

@ -155,7 +155,7 @@ install_nix
install_home_manager
# Rebuild NixOS
cd $HOME/dotfiles/config/nixos && sudo nixos-rebuild switch --flake .#$DOTF_HOSTNAME --impure
cd $HOME/dotfiles/config/nixos && sudo nixos-rebuild switch --flake .#$hostname --impure
if [ $? -ne 0 ]; then
tput setaf 1
echo "Failed to rebuild NixOS. Exiting..."
@ -164,7 +164,7 @@ if [ $? -ne 0 ]; then
fi
# Rebuild Home Manager
cd $HOME/dotfiles/config/home-manager && NIXPKGS_ALLOW_UNFREE=1 home-manager switch --flake .#$DOTF_HOSTNAME --impure
cd $HOME/dotfiles/config/home-manager && NIXPKGS_ALLOW_UNFREE=1 home-manager switch --flake .#$hostname --impure
if [ $? -ne 0 ]; then
tput setaf 1
echo "Failed to rebuild Home Manager. Exiting..."