mirror of
https://github.com/nix-community/home-manager
synced 2024-12-12 12:59:49 +01:00
provide RUNTIME_DIRECTORY manually if not given by systemd
This commit is contained in:
parent
295a580ca7
commit
141a58f9cf
1 changed files with 5 additions and 0 deletions
|
@ -50,6 +50,7 @@ let
|
||||||
cat = "${pkgs.coreutils}/bin/cat";
|
cat = "${pkgs.coreutils}/bin/cat";
|
||||||
curl = "${pkgs.curl}/bin/curl";
|
curl = "${pkgs.curl}/bin/curl";
|
||||||
install = "${pkgs.coreutils}/bin/install";
|
install = "${pkgs.coreutils}/bin/install";
|
||||||
|
mktemp = "${pkgs.coreutils}/bin/mktemp";
|
||||||
syncthing = "${pkgs.syncthing}/bin/syncthing";
|
syncthing = "${pkgs.syncthing}/bin/syncthing";
|
||||||
|
|
||||||
copyKeys = pkgs.writers.writeBash "syncthing-copy-keys" ''
|
copyKeys = pkgs.writers.writeBash "syncthing-copy-keys" ''
|
||||||
|
@ -67,6 +68,10 @@ let
|
||||||
'';
|
'';
|
||||||
|
|
||||||
curlShellFunction = ''
|
curlShellFunction = ''
|
||||||
|
# systemd sets and creates RUNTIME_DIRECTORY on Linux
|
||||||
|
# on Darwin, we create it manually via mktemp
|
||||||
|
RUNTIME_DIRECTORY="''${RUNTIME_DIRECTORY:=$(${mktemp} -d)}"
|
||||||
|
|
||||||
curl() {
|
curl() {
|
||||||
# get the api key by parsing the config.xml
|
# get the api key by parsing the config.xml
|
||||||
while
|
while
|
||||||
|
|
Loading…
Reference in a new issue