nix-installer
nix-installer copied to clipboard
Proxy environment variables are ignored (/etc/systemd/system/nix-daemon.service.d/override.conf is not created)
I am using the installer to install nix, while being behind a corporate proxy. I am on Ubuntu 22.04 (x86_64).
The proxy variables http_proxy, https_proxy, HTTP_PROXY and HTTPS_PROXY are set in my /etc/environment
The installer itself seems to use the proxy, but it fails to create a proxy configuration for the nix daemon.
Using the official nix installer, it detects any proxy environment variables and creates a /etc/systemd/system/nix-daemon.service.d/override.conf, which tells the daemon which proxies to use. This is also documented here.
Using this installer, this file is not created, thus, the daemon doesn't seem to use the proxy and fails to download any package.