Sign and upload to the new cache
This commit is contained in:
parent
c61438ef15
commit
205f452250
1 changed files with 3 additions and 5 deletions
|
@ -7,12 +7,10 @@ in
|
|||
description = "Copy nix cache to cache.int.chir.rs";
|
||||
script = ''
|
||||
#!${pkgs.bash}/bin/bash
|
||||
${pkgs.nix}/bin/nix copy --to 's3://cache.int.chir.rs?scheme=http&endpoint=192.168.2.1:9000' --all
|
||||
${pkgs.nix}/bin/nix store sign --key-file /root/cache-priv-key.pem --all
|
||||
${pkgs.nix}/bin/nix copy --to 's3://nix-cache?scheme=https&endpoint=cache.int.chir.rs' --all
|
||||
${pkgs.minio-client}/bin/mc rm -r --older-than 7d nix-cache/nix-cache
|
||||
'';
|
||||
unitConfig = {
|
||||
User = "darkkirb";
|
||||
Group = "users";
|
||||
};
|
||||
};
|
||||
systemd.timers.copy-to-cache = {
|
||||
enable = true;
|
||||
|
|
Loading…
Reference in a new issue