1
0

Compare commits

..

5 Commits

Author SHA1 Message Date
Flake Update Bot
aa3d5c74cb Flake update 2023-09-11T01:03+00:00 2023-09-11 03:04:06 +02:00
Flake Update Bot
57ef206512 Update from master 2023-09-11T01:03+00:00 2023-09-11 03:03:01 +02:00
33b6731c59 hosts/hydra-1: Migrate from nix-serve to harmonia 2023-09-10 10:55:46 +02:00
216c7df6a6 flake: bump nixpkgs version 2023-09-10 10:55:21 +02:00
127ae75544 configuration/common: Handle broken nix caches properly 2023-09-09 18:45:33 +02:00
2 changed files with 12 additions and 9 deletions

View File

@ -30,6 +30,8 @@
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,15 +77,10 @@
'';
};
services.nix-serve = {
services.harmonia = {
enable = true;
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;
};
settings.bind = "[::1]:5005";
signKeyPath = config.age.secrets.nix-cache-key.path;
};
services.nginx.enable = true;
@ -109,7 +104,13 @@
'';
};
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;
'';
};
};
};