Compare commits
5 Commits
7f6985e5c9
...
aa3d5c74cb
Author | SHA1 | Date | |
---|---|---|---|
|
aa3d5c74cb | ||
|
57ef206512 | ||
33b6731c59 | |||
216c7df6a6 | |||
127ae75544 |
@ -30,6 +30,8 @@
|
|||||||
auto-optimise-store = true;
|
auto-optimise-store = true;
|
||||||
# Keep buildtime dependencies
|
# Keep buildtime dependencies
|
||||||
keep-outputs = true;
|
keep-outputs = true;
|
||||||
|
# Build local, when caches are broken
|
||||||
|
fallback = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
@ -77,15 +77,10 @@
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
services.nix-serve = {
|
services.harmonia = {
|
||||||
enable = true;
|
enable = true;
|
||||||
port = 5005;
|
settings.bind = "[::1]:5005";
|
||||||
bindAddress = "127.0.0.1";
|
signKeyPath = config.age.secrets.nix-cache-key.path;
|
||||||
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;
|
services.nginx.enable = true;
|
||||||
@ -109,7 +104,13 @@
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://127.0.0.1:5005";
|
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;
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user