start a cache server on all pi

This commit is contained in:
jopejoe1 2024-05-01 12:27:13 +02:00
parent 0a76a91050
commit e9f920f57e
3 changed files with 9 additions and 6 deletions

View file

@ -19,12 +19,20 @@
users.mutableUsers = false;
services.nix-serve = {
enable = true;
openFirewall = true;
secretKeyFile = "/var/cache-priv-key.pem";
};
nix = {
settings = {
substituters = [
"https://cache.nixos.org"
"https://nix-community.cachix.org"
#"http://192.168.88.251:5000"
"http://192.168.88.252:5000"
#"http://192.168.88.253:5000"
];
trusted-public-keys = [
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="

1
init/chache.pem Normal file
View file

@ -0,0 +1 @@
binarycache.example.com:jSyBgFtsYVCEyuoSAf9ItSesIMlyLxoefDuVTGMlgHp9s5mSOZi352nGVJluE01PRY4ACknVku8EF9CROwEyKw==

View file

@ -76,12 +76,6 @@
};
};
services.nix-serve = {
enable = true;
openFirewall = true;
secretKeyFile = "/var/cache-priv-key.pem";
};
environment.systemPackages = with pkgs; [
grim # screenshot functionality
slurp # screenshot functionality