From 3530afb854d126f4a1ef23c6012306568d0b5a95 Mon Sep 17 00:00:00 2001 From: bluepython508 Date: Thu, 19 Feb 2026 10:17:53 +0000 Subject: [PATCH] Fix eval warning: stdenv.hostPlatform.system --- flake.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index c3a010d..3807858 100644 --- a/flake.nix +++ b/flake.nix @@ -80,7 +80,7 @@ value = { inherit enable; 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"]; wants = ["network-online.target"]; @@ -91,7 +91,7 @@ StateDirectory = name; ExecStartPre = "!${pkgs.writeShellScript "get-authkey" '' 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 ''}"; };