summaryrefslogtreecommitdiff
path: root/shell-scripts/nix-proxy
diff options
context:
space:
mode:
Diffstat (limited to 'shell-scripts/nix-proxy')
-rw-r--r--shell-scripts/nix-proxy14
1 files changed, 0 insertions, 14 deletions
diff --git a/shell-scripts/nix-proxy b/shell-scripts/nix-proxy
deleted file mode 100644
index f0b4ada..0000000
--- a/shell-scripts/nix-proxy
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/usr/bin/env bash
-if [[ $(id -u) -ne 0 ]]; then
- echo "Should be run with sudo privileges"
- exit
-fi
-mkdir /run/systemd/system/nix-daemon.service.d/
-cat << EOF >/run/systemd/system/nix-daemon.service.d/override.conf
-[Service]
-Environment="http_proxy=$http_proxy"
-Environment="https_proxy=$http_proxy"
-Environment="all_proxy=$http_proxy"
-EOF
-systemctl daemon-reload
-systemctl restart nix-daemon