start a cache server on all pi
This commit is contained in:
parent
0a76a91050
commit
e9f920f57e
3 changed files with 9 additions and 6 deletions
|
@ -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
1
init/chache.pem
Normal file
|
@ -0,0 +1 @@
|
|||
binarycache.example.com:jSyBgFtsYVCEyuoSAf9ItSesIMlyLxoefDuVTGMlgHp9s5mSOZi352nGVJluE01PRY4ACknVku8EF9CROwEyKw==
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue