Fix eval warning: stdenv.hostPlatform.system
This commit is contained in:
@@ -80,7 +80,7 @@
|
|||||||
value = {
|
value = {
|
||||||
inherit enable;
|
inherit enable;
|
||||||
script = ''
|
script = ''
|
||||||
TS_AUTHKEY=$(cat $RUNTIME_DIRECTORY/authkey) ${lib.getExe self.packages.${pkgs.system}.default} ${hostname} ${lib.concatMapStringsSep " " ({proto, port, dest}: "${proto}:${toString port}:${dest}") forwards}
|
TS_AUTHKEY=$(cat $RUNTIME_DIRECTORY/authkey) ${lib.getExe self.packages.${pkgs.stdenv.hostPlatform.system}.default} ${hostname} ${lib.concatMapStringsSep " " ({proto, port, dest}: "${proto}:${toString port}:${dest}") forwards}
|
||||||
'';
|
'';
|
||||||
wantedBy = ["multi-user.target"];
|
wantedBy = ["multi-user.target"];
|
||||||
wants = ["network-online.target"];
|
wants = ["network-online.target"];
|
||||||
@@ -91,7 +91,7 @@
|
|||||||
StateDirectory = name;
|
StateDirectory = name;
|
||||||
ExecStartPre = "!${pkgs.writeShellScript "get-authkey" ''
|
ExecStartPre = "!${pkgs.writeShellScript "get-authkey" ''
|
||||||
set -e
|
set -e
|
||||||
TS_API_CLIENT_ID=${cfg.clientId} TS_API_CLIENT_SECRET=$(cat ${cfg.clientSecretFile}) ${self.packages.${pkgs.system}.get-authkey}/bin/get-authkey -ephemeral -tags ${lib.concatStringsSep "," cfg.tags} > $RUNTIME_DIRECTORY/authkey
|
TS_API_CLIENT_ID=${cfg.clientId} TS_API_CLIENT_SECRET=$(cat ${cfg.clientSecretFile}) ${self.packages.${pkgs.stdenv.hostPlatform.system}.get-authkey}/bin/get-authkey -ephemeral -tags ${lib.concatStringsSep "," cfg.tags} > $RUNTIME_DIRECTORY/authkey
|
||||||
chown ${name}:${name} $RUNTIME_DIRECTORY/authkey
|
chown ${name}:${name} $RUNTIME_DIRECTORY/authkey
|
||||||
''}";
|
''}";
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user