nixpkgs-update: add XDG_RUNTIME_DIR

for nix-update update scripts
This commit is contained in:
Ryan Mulligan 2020-10-24 13:42:12 -07:00
parent 47a098b45f
commit a7afa15ed4

View file

@ -35,6 +35,7 @@ in
path = nixpkgsUpdateSystemDependencies;
environment.XDG_CONFIG_HOME = "/var/lib/nixpkgs-update";
environment.XDG_CACHE_HOME = "/var/cache/nixpkgs-update";
environment.XDG_RUNTIME_DIR = "/var/run/nixpkgs-update"; # for nix-update update scripts
# API_TOKEN is used by nixpkgs-update-github-releases
environment.API_TOKEN_FILE = "/var/lib/nixpkgs-update/github_token_with_username.txt";
# Used by nixpkgs-update-github-releases to install python dependencies
@ -55,6 +56,10 @@ in
StandardOutput = "journal";
};
preStart = ''
mkdir -p $XDG_RUNTIME_DIR
'';
script = ''
${nixpkgs-update-bin} delete-done --delete
grep -rl $XDG_CACHE_HOME/nixpkgs -e buildPython | grep default | \