nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix

nixos/taskchampion-sync-server: add host option, fix ExecStart

fixes the command line arguments for taskchampion-sync-server, also adding a new `host` option. fixes the corresponding test as well.

+8 -1
+7 -1
nixos/modules/services/misc/taskchampion-sync-server.nix
··· 22 22 type = types.str; 23 23 default = "taskchampion"; 24 24 }; 25 + host = lib.mkOption { 26 + description = "Host address on which to serve"; 27 + type = types.str; 28 + default = "127.0.0.1"; 29 + example = "0.0.0.0"; 30 + }; 25 31 port = lib.mkOption { 26 32 description = "Port on which to serve"; 27 33 type = types.port; ··· 85 79 DynamicUser = false; 86 80 ExecStart = '' 87 81 ${lib.getExe cfg.package} \ 88 - --port ${builtins.toString cfg.port} \ 82 + --listen "${cfg.host}:${builtins.toString cfg.port}" \ 89 83 --data-dir ${cfg.dataDir} \ 90 84 --snapshot-versions ${builtins.toString cfg.snapshot.versions} \ 91 85 --snapshot-days ${builtins.toString cfg.snapshot.days} \
+1
nixos/tests/taskchampion-sync-server.nix
··· 6 6 nodes = { 7 7 server = { 8 8 services.taskchampion-sync-server.enable = true; 9 + services.taskchampion-sync-server.host = "0.0.0.0"; 9 10 services.taskchampion-sync-server.openFirewall = true; 10 11 }; 11 12 client =