From 62a0bc8fcd8e3f57ac51b3081da41b2f78c0de4f Mon Sep 17 00:00:00 2001 From: ElnuDev Date: Sat, 12 Aug 2023 13:02:41 -0700 Subject: [PATCH] Add port configuration for tatoeba to flake.nix --- flake.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 816d9ef..d748129 100644 --- a/flake.nix +++ b/flake.nix @@ -68,6 +68,13 @@ The tatoeba package that should be used. ''; }; + port = lib.mkOption { + type = lib.types.port; + default = 3001; + description = lib.mdDoc '' + The port at which to run. + ''; + }; }; config = { systemd.services.tatoeba = let @@ -79,7 +86,7 @@ wantedBy = [ "network.target" ]; serviceConfig = { ExecStart = '' - ${cfg.package}/bin/tatoeba + ${cfg.package}/bin/tatoeba --port ${cfg.port} ''; Restart = "always"; DynamicUser = true;