Set Nix daemon proxy environment
This commit is contained in:
@@ -9,7 +9,11 @@
|
|||||||
./hardware.nix
|
./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 = {
|
networking = {
|
||||||
hostName = "cloud-pc";
|
hostName = "cloud-pc";
|
||||||
|
|||||||
@@ -9,7 +9,11 @@
|
|||||||
./hardware.nix
|
./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 = {
|
networking = {
|
||||||
hostName = "mini-pc";
|
hostName = "mini-pc";
|
||||||
|
|||||||
Reference in New Issue
Block a user