Can't set environment variables the usual way in pureOS (librem 14)

Hi I am rather confused all of the ways I used to set environmental variables doesn’t work. Including:

  • /etc/environment (then reboot)
  • ~/.pam_environment (then log out and in)

exporting from ~/.profile works but I thought setting pam or /etc/environment is preferred