1
0
Fork 0

Add serve-store

This commit is contained in:
Malte Brandy 2019-08-12 15:46:56 +02:00
parent fcc4750fc0
commit a495e2ff06
2 changed files with 20 additions and 6 deletions

View file

@ -20,6 +20,7 @@ in {
../../system/email2matrix.nix
../../system/matrix-synapse.nix
../../system/coturn.nix
../../system/serve-store.nix
./web.nix
./borg.nix
./mail.nix
@ -33,12 +34,6 @@ in {
host = "hera-intern:9100";
}];
nix.sshServe = {
enable = true;
keys = me.keys ++ me.backupkeys;
protocol = "ssh-ng";
};
services = {
borgbackup.jobs.data = {
doInit = false;

19
system/serve-store.nix Normal file
View file

@ -0,0 +1,19 @@
{ 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}";
};
};
};
}