Skip to content
This repository was archived by the owner on Jul 7, 2024. It is now read-only.

Commit a4a4377

Browse files
committed
srv: fix nixos modules
1 parent 75f94da commit a4a4377

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

nixos-modules.nix

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,12 @@ args@{ self, system, nixpkgsFor, libFor, nixosLibFor, ldflags, packages, ...
374374
description =
375375
"Allow token to add more tokens, or remove any tokens.";
376376
};
377-
allowedSRVs = mkOption {
377+
canSRVUpdate = mkOption {
378+
type = bool;
379+
description = "Allow updating SRV allowanes for peers it can push to.";
380+
default = false;
381+
};
382+
srvAllowances = mkOption {
378383
type = nullOr (listOf (submodule {
379384
options = {
380385
service = mkOption { type = str; };
@@ -387,6 +392,11 @@ args@{ self, system, nixpkgsFor, libFor, nixosLibFor, ldflags, packages, ...
387392
}));
388393
default = null;
389394
};
395+
srvAllowancesAny = mkOption {
396+
type = bool;
397+
description = "Allow updating SRV allowances without restrictions by srvAllowances.";
398+
default = false;
399+
};
390400
};
391401
});
392402
};

0 commit comments

Comments
 (0)