tsnet-serve-nix @main -
refs -
log -
-
https://git.jolheiser.com/tsnet-serve-nix.git
Signature
-----BEGIN SSH SIGNATURE-----
U1NIU0lHAAAAAQAAADMAAAALc3NoLWVkMjU1MTkAAAAgBTEvCQk6VqUAdN2RuH6bj1dNkY
oOpbPWj+jw4ua1B1cAAAADZ2l0AAAAAAAAAAZzaGE1MTIAAABTAAAAC3NzaC1lZDI1NTE5
AAAAQBV02eBKrSVPIsn3sw1Idcenk3gETiKpVmJrEmvBM4YHYBRTKfMWag++o3zY4lPXLm
E+4rP1QGw17W6Wdwxd0A4=
-----END SSH SIGNATURE-----
diff --git a/module/default.nix b/module/default.nix
index 735dc3053c5d90eeef45295ec6468cabdb30228a..d8c7566622adbf98d081cbb11d7bdb1f65d8dc37 100644
--- a/module/default.nix
+++ b/module/default.nix
@@ -43,7 +43,7 @@ description = "Path to mount proxy on";
};
stateDir = lib.mkOption {
type = lib.types.str;
- default = "/var/lib/tsnet-serve/${name}";
+ default = "/var/lib/tsnet-serve-${name}";
description = "Directory to store state in";
};
authKey = lib.mkOption {
@@ -79,8 +79,8 @@ ++ [
"--hostname=${instanceCfg.hostname}"
"--listen-port=${builtins.toString instanceCfg.port}"
"--mount-path=${instanceCfg.mountPath}"
-}: let
pkg = pkgs.callPackage ../pkg {inherit pkgs;};
+ cfg = config.services.tsnet-serve;
];
in "${pkg}/bin/tsnet-serve ${lib.concatStringsSep " " args}";
User = instanceCfg.user;