Asus UX390 add a pulseaudio configuration

I had a look and it seems like the ALSA card profiles are baked into Pipewire (and Pulseaudio). So you will have to rebuild Pipewire with a patch:

ASUS_Zenbook_UX390.patch

--- a/spa/plugins/alsa/mixer/paths/analog-output.conf.common
+++ b/spa/plugins/alsa/mixer/paths/analog-output.conf.common
@@ -134,12 +134,20 @@
 ;                                      # numbering schemes, so we can't hardcode the full jack name in our configuration
 ;                                      # files.
 
+[Element Master]
+switch = mute
+volume = ignore
+
 [Element PCM]
 switch = mute
 volume = merge
 override-map.1 = all
 override-map.2 = all-left,all-right
 
+[Element LFE]
+switch = mute
+volume = ignore
+
 [Element External Amplifier]
 switch = select
 

/etc/nixos/configuration.nix

{
  hardware.pulseaudio.enable = false;
  security.rtkit.enable = true;
  services.pipewire = {
    enable = true;
    package = pkgs.pipewire.overrideAttrs ({ patches ? [], ... }: {
      patches = [ ./ASUS_Zenbook_UX390.patch ] ++ patches;
    });
    alsa.enable = true;
    alsa.support32Bit = true;
    pulse.enable = true;
  };
}