We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6286795 + 196c170 commit 1277e73Copy full SHA for 1277e73
nixos/modules/services/misc/taskchampion-sync-server.nix
@@ -45,6 +45,11 @@ in
45
default = 14;
46
};
47
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
+ };
53
54
55
config = lib.mkIf cfg.enable {
@@ -77,7 +82,8 @@ in
77
82
--port ${builtins.toString cfg.port} \
78
83
--data-dir ${cfg.dataDir} \
79
84
--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}
81
87
'';
88
89
0 commit comments