Update dependencies
This commit is contained in:
13
flake.nix
13
flake.nix
@@ -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
|
||||
''}";
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user