Archived
1
0
forked from rarias/bscpkgs

Serve the nix store from hut

This commit is contained in:
2023-09-12 12:19:43 +02:00
parent 2a0254b684
commit b120a7ca85
4 changed files with 30 additions and 0 deletions

View File

@@ -9,6 +9,7 @@
./monitoring.nix
./nfs.nix
./slurm-daemon.nix
./nix-serve.nix
#./pxe.nix
];

16
m/hut/nix-serve.nix Normal file
View File

@@ -0,0 +1,16 @@
{ config, ... }:
{
age.secrets.nixServe.file = ../../secrets/nix-serve.age;
services.nix-serve = {
enable = true;
# Only listen locally, as we serve it via ssh
bindAddress = "127.0.0.1";
port = 5000;
secretKeyFile = config.age.secrets.nixServe.path;
# Public key:
# jungle.bsc.es:pEc7MlAT0HEwLQYPtpkPLwRsGf80ZI26aj29zMw/HH0=
};
}