NixServe : Add store local cache.
This commit is contained in:
parent
a33deebdb9
commit
1a1df52ba8
|
@ -200,6 +200,7 @@
|
|||
./module/Docker.nix
|
||||
./module/Ftpd.nix
|
||||
./module/Gnome.nix
|
||||
./module/NixServe.nix
|
||||
./module/Ollama.nix
|
||||
./module/PowersaveAmd.nix
|
||||
./user/Voronind.nix
|
||||
|
|
9
module/NixServe.nix
Normal file
9
module/NixServe.nix
Normal 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
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue