How to set global environment variables as a Linux distribution? - /etc/environment.d

As mentioned here:

systemd DefaultEnvironment mechanism doesn’t work with display manager lightdm for some reason.

Therefore porting all of Kicksecure / Whonix to systemd DefaultEnvironment mechanism is probably not a good idea until that is resolved and this being more tested in more environments.