Skip to content

Commit 1277e73

Browse files
authored
nixos/taskchampion-sync-server: support specifiying --allow-client-id (#374939)
2 parents 6286795 + 196c170 commit 1277e73

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

nixos/modules/services/misc/taskchampion-sync-server.nix

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ in
4545
default = 14;
4646
};
4747
};
48+
allowClientIds = lib.mkOption {
49+
description = "Client IDs to allow (can be repeated; if not specified, all clients are allowed)";
50+
type = types.listOf types.str;
51+
default = [ ];
52+
};
4853
};
4954

5055
config = lib.mkIf cfg.enable {
@@ -77,7 +82,8 @@ in
7782
--port ${builtins.toString cfg.port} \
7883
--data-dir ${cfg.dataDir} \
7984
--snapshot-versions ${builtins.toString cfg.snapshot.versions} \
80-
--snapshot-days ${builtins.toString cfg.snapshot.days}
85+
--snapshot-days ${builtins.toString cfg.snapshot.days} \
86+
${lib.concatMapStringsSep " " (id: "--allow-client-id ${id}") cfg.allowClientIds}
8187
'';
8288
};
8389
};

0 commit comments

Comments
 (0)