I finally found out how to make my Pop!_OS recognize my HDMI for audio. (basically I'm using an ASUS laptop with a 1060 hooked with a monitor, everything was fine except for the HDMI audio output not displaying on the audio output list)
I followed this guide and it works flawlessly, but every time I reboot my machine I have to run this commands in order for the fix to apply again..
sudo modprobe nvhda sudo tee /proc/acpi/nvhda <<<ON
I originally extracted the zip file on my downloads folder and followed the steps from there on, I'm aware I can now skip the make and install part and just just straight use the
sudo modprobe nvhda to load the fix; I don't know if I can already delete that extracted folder (or should I move it to root folder/other..).
That's a separate question basically, but main question is how would I make a script that executes those 2 pieces of code on system start/boot.