Update dependencies

This commit is contained in:
bluepython508
2024-11-01 17:33:34 +00:00
parent 033ac0b400
commit 5cdfab398d
3596 changed files with 1033483 additions and 259 deletions

View File

@@ -18,8 +18,13 @@
inherit (pkgs) callPackage;
});
in {
packages = eachSystem ({callPackage, ...}: {
packages = eachSystem ({callPackage, pkgs, ...}: {
default = callPackage ./. {};
get-authkey = pkgs.tailscale.overrideAttrs {
subPackages = ["cmd/get-authkey"];
outputs = ["out"];
postInstall = "";
};
});
devShells = eachSystem ({callPackage, ...}: {
default = callPackage ./shell.nix {};
@@ -63,10 +68,6 @@
};
config.systemd.services = let
cfg = config.services.bluepython508.tsnet-proxy;
get-authkey = pkgs.tailscale.overrideAttrs {
subPackages = ["cmd/get-authkey"];
postInstall = "";
};
in
lib.mapAttrs' (hostname: {
forwards,
@@ -88,7 +89,7 @@
RuntimeDirectory = name;
ExecStartPre = "!${pkgs.writeShellScript "get-authkey" ''
set -e
TS_API_CLIENT_ID=${cfg.clientId} TS_API_CLIENT_SECRET=$(cat ${cfg.clientSecretFile}) ${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.system}.get-authkey}/bin/get-authkey -ephemeral -tags ${lib.concatStringsSep "," cfg.tags} > $RUNTIME_DIRECTORY/authkey
chown ${name}:${name} $RUNTIME_DIRECTORY/authkey
''}";
};