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:
@ -4,7 +4,7 @@
|
|||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
|
||||||
|
|
||||||
# Pinned versions for specific packages
|
# Pinned versions for specific packages (https://nixhub.io)
|
||||||
nixpkgs-go.url = "github:nixos/nixpkgs/d4f247e89f6e10120f911e2e2d2254a050d0f732";
|
nixpkgs-go.url = "github:nixos/nixpkgs/d4f247e89f6e10120f911e2e2d2254a050d0f732";
|
||||||
nixpkgs-vscode.url = "github:nixos/nixpkgs/d4f247e89f6e10120f911e2e2d2254a050d0f732";
|
nixpkgs-vscode.url = "github:nixos/nixpkgs/d4f247e89f6e10120f911e2e2d2254a050d0f732";
|
||||||
nixpkgs-zed.url = "github:nixos/nixpkgs/41dea55321e5a999b17033296ac05fe8a8b5a257";
|
nixpkgs-zed.url = "github:nixos/nixpkgs/41dea55321e5a999b17033296ac05fe8a8b5a257";
|
||||||
|
4
setup.sh
4
setup.sh
@ -155,7 +155,7 @@ install_nix
|
|||||||
install_home_manager
|
install_home_manager
|
||||||
|
|
||||||
# Rebuild NixOS
|
# 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
|
if [ $? -ne 0 ]; then
|
||||||
tput setaf 1
|
tput setaf 1
|
||||||
echo "Failed to rebuild NixOS. Exiting..."
|
echo "Failed to rebuild NixOS. Exiting..."
|
||||||
@ -164,7 +164,7 @@ if [ $? -ne 0 ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Rebuild Home Manager
|
# 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
|
if [ $? -ne 0 ]; then
|
||||||
tput setaf 1
|
tput setaf 1
|
||||||
echo "Failed to rebuild Home Manager. Exiting..."
|
echo "Failed to rebuild Home Manager. Exiting..."
|
||||||
|
Reference in New Issue
Block a user