add sudo to hardware generation

This commit is contained in:
Tyler Kelley 2024-02-22 14:32:56 -06:00
parent 2eac13d57f
commit e4dc5144cd

View File

@ -76,7 +76,7 @@ read -p "Enter Your GPU Type : " gpuType
sed -i "/^\s*gpuType[[:space:]]*=[[:space:]]*\"/s/\"\(.*\)\"/\"$gpuType\"/" ./options.nix
echo "Generating The Hardware Configuration"
nixos-generate-config --show-hardware-config > hardware.nix
sudo nixos-generate-config --show-hardware-config > hardware.nix
echo "-----"