NixServe : Add store local cache.

This commit is contained in:
Dmitry Voronin 2024-03-09 17:17:06 +03:00
parent a33deebdb9
commit 1a1df52ba8
2 changed files with 10 additions and 0 deletions

View file

@ -200,6 +200,7 @@
./module/Docker.nix ./module/Docker.nix
./module/Ftpd.nix ./module/Ftpd.nix
./module/Gnome.nix ./module/Gnome.nix
./module/NixServe.nix
./module/Ollama.nix ./module/Ollama.nix
./module/PowersaveAmd.nix ./module/PowersaveAmd.nix
./user/Voronind.nix ./user/Voronind.nix

9
module/NixServe.nix Normal file
View file

@ -0,0 +1,9 @@
{ pkgs, ... }: {
services.nix-serve = {
enable = true;
bindAddress = "0.0.0.0";
package = pkgs.nix-serve-ng;
port = 5000;
secretKeyFile = "/root/nixcache/secret-key-file"; # Generate with: nix-store --generate-binary-cache-key nixcache.voronind.com secret-key-file public-key-file
};
}