feat: more convenience for ISO

This commit is contained in:
Swarsel 2024-12-21 03:16:40 +01:00
parent efca28aa57
commit a073dbc3e4
Signed by: swarsel
GPG key ID: 26A54C31F2A4FD84
4 changed files with 40 additions and 8 deletions

View file

@ -76,6 +76,8 @@ if [[ $local_keys != *"${pub_arr[1]}"* ]]; then
green "Adjusting flake.nix so that the configuration is buildable"
sed -i '/nix-secrets = {/,/^[[:space:]]*};/d' flake.nix
git add flake.nix
else
green "Valid SSH key found! Continuing with installation"
fi
sudo nixos-generate-config --dir /home/"$target_user"/.dotfiles/hosts/nixos/"$target_flake"/
git add /home/"$target_user"/.dotfiles/hosts/nixos/"$target_flake"/hardware-configuration.nix