modified: common/configuration.nix
modified: hosts/nix-cache/configuration.nix
This commit is contained in:
@@ -54,7 +54,7 @@ users.users.root = {
|
|||||||
nix.settings = {
|
nix.settings = {
|
||||||
substituters = [
|
substituters = [
|
||||||
"http://nix-cache"
|
"http://nix-cache"
|
||||||
"https://cache.nixos.org/"
|
# "https://cache.nixos.org/"
|
||||||
];
|
];
|
||||||
trusted-public-keys = [
|
trusted-public-keys = [
|
||||||
"nix-ccache-1:<base32‑pubkey‑hash‑from‑cache-pub.pem>"
|
"nix-ccache-1:<base32‑pubkey‑hash‑from‑cache-pub.pem>"
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
services.nginx = {
|
services.nginx = {
|
||||||
enable = true;
|
enable = true;
|
||||||
recommendedProxySettings = true;
|
recommendedProxySettings = true;
|
||||||
virtualHosts."cache.local" = {
|
virtualHosts."nix-cache" = {
|
||||||
locations."/".proxyPass = "http://${config.services.nix-serve.bindAddress}:${toString config.services.nix-serve.port}";
|
locations."/".proxyPass = "http://${config.services.nix-serve.bindAddress}:${toString config.services.nix-serve.port}";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user