fix
This commit is contained in:
parent
f75baa0990
commit
aa440d7660
@ -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
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user