From aa440d766064b7097140062b39e41df4a1af4251 Mon Sep 17 00:00:00 2001 From: foglar Date: Thu, 9 Jan 2025 10:38:37 +0100 Subject: [PATCH] fix --- install.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index 848a581..3e8648f 100755 --- a/install.sh +++ b/install.sh @@ -29,7 +29,7 @@ gum log --structured --level info "Creating hardware configuration..." file $SCR sed -i "0,/shinya/s//$(whoami)/" $SCRIPT_DIR/flake.nix gum log --structured --level info "Setting user name in flake.nix..." file $SCRIPT_DIR/flake.nix # Set hostname by selected profile -sed -i "0,/kogami/s//$profile/" $SCRIPT_DIR/flake.nix +sed -i "0,/kogami/s//$nixos_profile/" $SCRIPT_DIR/flake.nix gum log --structured --level info "Setting hostname in flake.nix..." file $SCRIPT_DIR/flake.nix # Set dotfiles path as $SCRIPT_DIR path #! IMPORTANT @@ -41,12 +41,12 @@ fi gum log --structured --level info "Opening flake.nix in $EDITOR..." file $SCRIPT_DIR/flake.nix $EDITOR $SCRIPT_DIR/flake.nix -gum log --structured --level info "Building configuration for $profile..." profile $profile -sudo nixos-rebuild build --flake $SCRIPT_DIR#"${profile}" +gum log --structured --level info "Building configuration for $nixos_profile..." profile $nixos_profile +sudo nixos-rebuild build --flake $SCRIPT_DIR#"${$nixos_profile}" # Wallpapers if [ $download_wallpapers = true ]; then - gum log --structured --level info "Downloading wallpapers..." profile $profile + gum log --structured --level info "Downloading wallpapers..." profile $nixos_profile nix-shell -p git --command "git clone https://git.foglar.tech/foglar/wallpapers.git ~/Pictures/wallpapers" fi