[nixpkgs-update] automatically run (#8)
This commit is contained in:
parent
612b75f0a3
commit
f4e9b4e741
2 changed files with 13 additions and 22 deletions
|
@ -23,10 +23,10 @@ let
|
||||||
WorkingDirectory = "/var/lib/nixpkgs-update";
|
WorkingDirectory = "/var/lib/nixpkgs-update";
|
||||||
StateDirectory = "nixpkgs-update";
|
StateDirectory = "nixpkgs-update";
|
||||||
StateDirectoryMode = "700";
|
StateDirectoryMode = "700";
|
||||||
RuntimeDirectory = "nixpkgs-update";
|
|
||||||
RuntimeDirectoryMode = "700";
|
|
||||||
CacheDirectory = "nixpkgs-update";
|
CacheDirectory = "nixpkgs-update";
|
||||||
CacheDirectoryMode = "700";
|
CacheDirectoryMode = "700";
|
||||||
|
LogsDirectory = "nixpkgs-update";
|
||||||
|
LogsDirectoryMode = "700";
|
||||||
StandardOutput="journal";
|
StandardOutput="journal";
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
|
@ -42,33 +42,24 @@ in {
|
||||||
"r-ryantm"
|
"r-ryantm"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
systemd.services.nixpkgs-update = {
|
systemd.services.nixpkgs-update = {
|
||||||
description = "nixpkgs-update service";
|
description = "nixpkgs-update service";
|
||||||
enable = true;
|
enable = true;
|
||||||
path = nixpkgsUpdateSystemDependencies;
|
path = nixpkgsUpdateSystemDependencies;
|
||||||
environment.XDG_CONFIG_HOME = "/var/lib/nixpkgs-update";
|
environment.XDG_CONFIG_HOME = "/var/lib/nixpkgs-update";
|
||||||
environment.XDG_RUNTIME_DIR = "/run/nixpkgs-update";
|
|
||||||
environment.XDG_CACHE_HOME = "/var/cache/nixpkgs-update";
|
environment.XDG_CACHE_HOME = "/var/cache/nixpkgs-update";
|
||||||
|
|
||||||
serviceConfig = nixpkgsUpdateServiceConfigCommon;
|
serviceConfig = nixpkgsUpdateServiceConfigCommon;
|
||||||
script = "${nixpkgs-update}/bin/nixpkgs-update update";
|
script = ''
|
||||||
|
sleep 10
|
||||||
|
${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 update
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.services.nixpkgs-update-delete-done = {
|
systemd.timers.nixpkgs-update = {
|
||||||
description = "nixpkgs-update delete done branches";
|
description = "nixpkgs-update";
|
||||||
enable = true;
|
|
||||||
path = nixpkgsUpdateSystemDependencies;
|
|
||||||
environment.XDG_CONFIG_HOME = "/var/lib/nixpkgs-update";
|
|
||||||
environment.XDG_RUNTIME_DIR = "/run/nixpkgs-update";
|
|
||||||
environment.XDG_CACHE_HOME = "/var/cache/nixpkgs-update";
|
|
||||||
|
|
||||||
serviceConfig = nixpkgsUpdateServiceConfigCommon;
|
|
||||||
script = "${nixpkgs-update}/bin/nixpkgs-update delete-done";
|
|
||||||
};
|
|
||||||
|
|
||||||
systemd.timers.nixpkgs-update-delete-done = {
|
|
||||||
description = "nixpkgs-update delete done branches";
|
|
||||||
enable = true;
|
enable = true;
|
||||||
timerConfig = { OnCalendar = "daily"; };
|
timerConfig = { OnCalendar = "daily"; };
|
||||||
};
|
};
|
||||||
|
|
|
@ -17,10 +17,10 @@
|
||||||
"homepage": "",
|
"homepage": "",
|
||||||
"owner": "ryantm",
|
"owner": "ryantm",
|
||||||
"repo": "nixpkgs-update",
|
"repo": "nixpkgs-update",
|
||||||
"rev": "3f559eb4c24aab547447c248d32ee791fe937cf0",
|
"rev": "d58957768a9ba154548431539e7b81eae97f9199",
|
||||||
"sha256": "1xyaja08cv57gbnzyal9iryb0dc4yg986hdm6yy9mg5fajgh7gr9",
|
"sha256": "02lx7y2ckaiv75708qc8n7kgdns8fw5gmxn2v2yg3r8cgd0crwxm",
|
||||||
"type": "tarball",
|
"type": "tarball",
|
||||||
"url": "https://github.com/ryantm/nixpkgs-update/archive/3f559eb4c24aab547447c248d32ee791fe937cf0.tar.gz",
|
"url": "https://github.com/ryantm/nixpkgs-update/archive/d58957768a9ba154548431539e7b81eae97f9199.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