1
0

Compare commits

..

No commits in common. "aa3d5c74cb649a1c2fbc03a6550689d6401897db" and "7f6985e5c9f7c38ad9884aee0f5dd913d831c39d" have entirely different histories.

2 changed files with 9 additions and 12 deletions

View File

@ -30,8 +30,6 @@
auto-optimise-store = true;
# Keep buildtime dependencies
keep-outputs = true;
# Build local, when caches are broken
fallback = true;
};
environment.systemPackages = with pkgs; [

View File

@ -77,10 +77,15 @@
'';
};
services.harmonia = {
services.nix-serve = {
enable = true;
settings.bind = "[::1]:5005";
signKeyPath = config.age.secrets.nix-cache-key.path;
port = 5005;
bindAddress = "127.0.0.1";
secretKeyFile = config.age.secrets.nix-cache-key.path;
# Workaround https://github.com/NixOS/nix/issues/7704#issuecomment-1409480909
package = pkgs.nix-serve-ng.override {
nix = pkgs.nixVersions.nix_2_12;
};
};
services.nginx.enable = true;
@ -104,13 +109,7 @@
'';
};
locations."/" = {
proxyPass = "http://[::1]:5005";
extraConfig = ''
proxy_redirect http:// https://;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
'';
proxyPass = "http://127.0.0.1:5005";
};
};
};