build02/nixpkgs-update: reuse worker nixpkgs repo for updatescript
This commit is contained in:
parent
1c00335760
commit
0e64360c21
2 changed files with 2 additions and 7 deletions
hosts/build02
|
@ -144,11 +144,6 @@ let
|
|||
startAt = "0/12:10"; # every 12 hours
|
||||
};
|
||||
|
||||
fetch-updatescript-cmd = pkgs.writeScriptBin "fetch-updatescript-cmd" ''
|
||||
${pkgs.git}/bin/git -C /var/cache/nixpkgs-update/updatescript/nixpkgs pull --quiet upstream
|
||||
${pkgs.nix}/bin/nix eval --raw -f ${./packages-with-update-script.nix}
|
||||
'';
|
||||
|
||||
in
|
||||
{
|
||||
users.groups.r-ryantm = { };
|
||||
|
@ -189,7 +184,7 @@ in
|
|||
|
||||
systemd.services.nixpkgs-update-fetch-repology = mkFetcher "repology" "${nixpkgs-update-bin} fetch-repology";
|
||||
|
||||
systemd.services.nixpkgs-update-fetch-updatescript = mkFetcher "updatescript" "${fetch-updatescript-cmd}/bin/fetch-updatescript-cmd";
|
||||
systemd.services.nixpkgs-update-fetch-updatescript = mkFetcher "updatescript" "${pkgs.nix}/bin/nix eval --raw -f ${./packages-with-update-script.nix}";
|
||||
systemd.services.nixpkgs-update-fetch-github = mkFetcher "github" nixpkgs-update-github-releases';
|
||||
|
||||
systemd.services.nixpkgs-update-worker1 = mkWorker "worker1";
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
let
|
||||
pkgs = import /var/cache/nixpkgs-update/updatescript/nixpkgs { };
|
||||
pkgs = import /var/cache/nixpkgs-update/worker/nixpkgs { };
|
||||
in
|
||||
# code in the following let block was copied from nixos/nixpkgs under
|
||||
# the MIT License
|
||||
|
|
Loading…
Add table
Reference in a new issue