A simple command-line tool for managing proxy settings for the Nix daemon.
- Supports macOS and Linux systems
- Simple command-line interface
- Easily set, view, or remove proxy configurations for the Nix daemon
nix run github:aleadag/nix-proxy-manager
git clone https://github.com/aleadag/nix-proxy-manager.git
cd nix-proxy-manager
sudo cp main.py /usr/local/bin/nix-proxy-manager
sudo chmod +x /usr/local/bin/nix-proxy-manager
sudo ln -s "$(pwd)/main.py" /usr/local/bin/nix-proxy-manager
sudo chmod +x main.py
sudo nix-proxy-manager set http://127.0.0.1:7890
sudo nix-proxy-manager unset
sudo nix-proxy-manager show
- Python 3
- Root privileges (needs to be run with sudo)
- Supported operating systems: macOS or Linux
- On macOS, the tool modifies the
/Library/LaunchDaemons/org.nixos.nix-daemon.plist
file - On Linux, the tool manages the
/etc/systemd/system/nix-daemon.service.d/proxy-override.conf
file
Pull Requests and Issues are welcome!
This project is based on the solution discussed in NixOS issue #1472.