0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 21:50:33 +03:00

nixos/taskchampion-sync-server: fix start failure (#396478)

This commit is contained in:
Doron Behar 2025-04-06 08:47:52 +03:00 committed by GitHub
commit 342589fe02
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 1 deletions

View file

@ -22,6 +22,12 @@ in
type = types.str;
default = "taskchampion";
};
host = lib.mkOption {
description = "Host address on which to serve";
type = types.str;
default = "127.0.0.1";
example = "0.0.0.0";
};
port = lib.mkOption {
description = "Port on which to serve";
type = types.port;
@ -79,7 +85,7 @@ in
DynamicUser = false;
ExecStart = ''
${lib.getExe cfg.package} \
--port ${builtins.toString cfg.port} \
--listen "${cfg.host}:${builtins.toString cfg.port}" \
--data-dir ${cfg.dataDir} \
--snapshot-versions ${builtins.toString cfg.snapshot.versions} \
--snapshot-days ${builtins.toString cfg.snapshot.days} \

View file

@ -6,6 +6,7 @@ import ./make-test-python.nix (
nodes = {
server = {
services.taskchampion-sync-server.enable = true;
services.taskchampion-sync-server.host = "0.0.0.0";
services.taskchampion-sync-server.openFirewall = true;
};
client =