nixpkgs-update: add XDG_RUNTIME_DIR
for nix-update update scripts
This commit is contained in:
parent
47a098b45f
commit
a7afa15ed4
1 changed files with 5 additions and 0 deletions
|
@ -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 | \
|
||||
|
|
Loading…
Add table
Reference in a new issue