Set Nix daemon proxy environment
NixOS switch cloud-pc / switch (push) Successful in 14s
NixOS switch mini-pc / switch (push) Successful in 13s

This commit is contained in:
Dmitry
2026-05-30 15:07:08 +03:00
parent 6852d740b5
commit 037372d500
2 changed files with 10 additions and 2 deletions
+5 -1
View File
@@ -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";
+5 -1
View File
@@ -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";