1
0
Fork 0
nixos-config/system/serve-store.nix

20 lines
411 B
Nix
Raw Normal View History

2019-08-12 13:46:56 +00:00
{ config, ... }: {
services = {
nix-serve = {
enable = true;
secretKeyFile = "/var/cache-priv-key.pem";
};
nginx = {
enable = true;
virtualHosts."binarycache" = {
listen = [{
addr = "[::]";
port = 5001;
}];
locations."/".proxyPass =
"http://127.0.0.1:${toString config.services.nix-serve.port}";
};
};
};
}