From 037372d5004f68aa5e6fcd153ea5b3986030a5fe Mon Sep 17 00:00:00 2001 From: Dmitry Date: Sat, 30 May 2026 15:07:08 +0300 Subject: [PATCH] Set Nix daemon proxy environment --- nixos/hosts/cloud-pc/default.nix | 6 +++++- nixos/hosts/mini-pc/default.nix | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/nixos/hosts/cloud-pc/default.nix b/nixos/hosts/cloud-pc/default.nix index 9ffeb22..f3ef8e4 100644 --- a/nixos/hosts/cloud-pc/default.nix +++ b/nixos/hosts/cloud-pc/default.nix @@ -9,7 +9,11 @@ ./hardware.nix ]; - nix.settings.http-proxy = "http://192.168.1.10:10172"; + systemd.services.nix-daemon.environment = { + HTTPS_PROXY = "http://192.168.1.10:10172"; + HTTP_PROXY = "http://192.168.1.10:10172"; + NO_PROXY = "localhost,127.0.0.0/8,::1,192.168.1.0/24"; + }; networking = { hostName = "cloud-pc"; diff --git a/nixos/hosts/mini-pc/default.nix b/nixos/hosts/mini-pc/default.nix index 88dc9a4..478dc56 100644 --- a/nixos/hosts/mini-pc/default.nix +++ b/nixos/hosts/mini-pc/default.nix @@ -9,7 +9,11 @@ ./hardware.nix ]; - nix.settings.http-proxy = "http://192.168.1.10:10172"; + systemd.services.nix-daemon.environment = { + HTTPS_PROXY = "http://192.168.1.10:10172"; + HTTP_PROXY = "http://192.168.1.10:10172"; + NO_PROXY = "localhost,127.0.0.0/8,::1,192.168.1.0/24"; + }; networking = { hostName = "mini-pc";