fix new nixpkgs-update github source
it is now working!
This commit is contained in:
parent
209f97edaf
commit
9f50926734
2 changed files with 10 additions and 7 deletions
|
@ -48,16 +48,19 @@ in
|
||||||
systemd.services.nixpkgs-update = {
|
systemd.services.nixpkgs-update = {
|
||||||
description = "nixpkgs-update service";
|
description = "nixpkgs-update service";
|
||||||
enable = true;
|
enable = true;
|
||||||
|
restartIfChanged = false;
|
||||||
path = nixpkgsUpdateSystemDependencies;
|
path = nixpkgsUpdateSystemDependencies;
|
||||||
environment.XDG_CONFIG_HOME = "/var/lib/nixpkgs-update";
|
environment.XDG_CONFIG_HOME = "/var/lib/nixpkgs-update";
|
||||||
environment.XDG_CACHE_HOME = "/var/cache/nixpkgs-update";
|
environment.XDG_CACHE_HOME = "/var/cache/nixpkgs-update";
|
||||||
# API_TOKEN is used by nixpkgs-update-github-releases
|
# API_TOKEN is used by nixpkgs-update-github-releases
|
||||||
environment.API_TOKEN_FILE = "/var/lib/nixpkgs-update/github_token_with_username.txt";
|
environment.API_TOKEN_FILE = "/var/lib/nixpkgs-update/github_token_with_username.txt";
|
||||||
|
# Used by nixpkgs-update-github-releases to install python dependencies
|
||||||
|
environment.NIX_PATH = "nixpkgs=${sources.nixpkgs}";
|
||||||
|
|
||||||
serviceConfig = nixpkgsUpdateServiceConfigCommon;
|
serviceConfig = nixpkgsUpdateServiceConfigCommon;
|
||||||
script = ''
|
script = ''
|
||||||
${nixpkgs-update}/bin/nixpkgs-update delete-done
|
${nixpkgs-update}/bin/nixpkgs-update delete-done
|
||||||
${nixpkgs-update-github-releases} > /var/lib/nixpkgs/packages-to-update.txt
|
${nixpkgs-update-github-releases} > /var/lib/nixpkgs-update/packages-to-update.txt
|
||||||
${nixpkgs-update}/bin/nixpkgs-update update-list
|
${nixpkgs-update}/bin/nixpkgs-update update-list
|
||||||
${nixpkgs-update}/bin/nixpkgs-update delete-done
|
${nixpkgs-update}/bin/nixpkgs-update delete-done
|
||||||
${nixpkgs-update}/bin/nixpkgs-update fetch-repology > /var/lib/nixpkgs-update/packages-to-update.txt
|
${nixpkgs-update}/bin/nixpkgs-update fetch-repology > /var/lib/nixpkgs-update/packages-to-update.txt
|
||||||
|
|
|
@ -17,10 +17,10 @@
|
||||||
"homepage": "",
|
"homepage": "",
|
||||||
"owner": "ryantm",
|
"owner": "ryantm",
|
||||||
"repo": "nixpkgs-update",
|
"repo": "nixpkgs-update",
|
||||||
"rev": "e31db559492725cdee8bdc0db06814f91d590aca",
|
"rev": "a6fd377407eec362a8f6b0edd971c8e33d2ffa5a",
|
||||||
"sha256": "10jkykls7ignfxf6vzcyl50wghynm4zbj4b482n2w1is9s8zc3gq",
|
"sha256": "1p6mvksrcpvgkviy4y774qc6h70f7scvdc8ivmh11iw5spbahd83",
|
||||||
"type": "tarball",
|
"type": "tarball",
|
||||||
"url": "https://github.com/ryantm/nixpkgs-update/archive/e31db559492725cdee8bdc0db06814f91d590aca.tar.gz",
|
"url": "https://github.com/ryantm/nixpkgs-update/archive/a6fd377407eec362a8f6b0edd971c8e33d2ffa5a.tar.gz",
|
||||||
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
|
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
|
||||||
},
|
},
|
||||||
"nixpkgs-update-github-releases": {
|
"nixpkgs-update-github-releases": {
|
||||||
|
@ -29,10 +29,10 @@
|
||||||
"homepage": null,
|
"homepage": null,
|
||||||
"owner": "ryantm",
|
"owner": "ryantm",
|
||||||
"repo": "nixpkgs-update-github-releases",
|
"repo": "nixpkgs-update-github-releases",
|
||||||
"rev": "f7a471cd6e3e092432d42487e7797ca28a21da69",
|
"rev": "a1e7e23fd67090477b46b066da465c3e4eec91fc",
|
||||||
"sha256": "13wd0q9zbl551saaplrq88irbk6mqpa5rlkffdw0f95qldkxmipa",
|
"sha256": "0d85jhwqgz3pax408inp77bam8pkgvwbakfagdiyqz3bhwm0yxwv",
|
||||||
"type": "tarball",
|
"type": "tarball",
|
||||||
"url": "https://github.com/ryantm/nixpkgs-update-github-releases/archive/f7a471cd6e3e092432d42487e7797ca28a21da69.tar.gz",
|
"url": "https://github.com/ryantm/nixpkgs-update-github-releases/archive/a1e7e23fd67090477b46b066da465c3e4eec91fc.tar.gz",
|
||||||
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
|
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
|
||||||
},
|
},
|
||||||
"simple-hydra": {
|
"simple-hydra": {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue