nix-serve: serve nix-store as binary cache

This commit is contained in:
Leonardo Eugênio 2022-12-19 23:24:45 -03:00
parent 110407e600
commit fb3cf428fc
3 changed files with 9 additions and 0 deletions

View file

@ -85,6 +85,7 @@
modules = [
./hosts/monolith.nix
./system/gitlab-runner.nix
./system/nix-serve.nix
./system/btusb-kernel-patches.nix
./system/amdgpu-kernel-patches.nix
] ++ common_modules;

View file

@ -140,11 +140,13 @@
settings = {
auto-optimise-store = true;
substituters = [
"https://nixcache.lelgenio.1337.cx:5000"
"https://hyprland.cachix.org"
"https://lelgenio.cachix.org"
"https://wegank.cachix.org"
];
trusted-public-keys = [
"nixcache.lelgenio.1337.cx:zxCfx7S658llDgAUG0JVyNrlAdFVvPniSdDOkvfTPS8="
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
"lelgenio.cachix.org-1:W8tMlmDFLU/V+6DlChXjekxoHZpjgVHZpmusC4cueBc="
"wegank.cachix.org-1:xHignps7GtkPP/gYK5LvA/6UFyz98+sgaxBSy7qK0Vs="

6
system/nix-serve.nix Normal file
View file

@ -0,0 +1,6 @@
{ config, pkgs, lib, ... }: {
services.nix-serve = {
enable = true;
secretKeyFile = "/var/cache-priv-key.pem";
};
}