1
0
Fork 0

fix makestep type

This commit is contained in:
Daniel Barlow 2023-07-22 23:50:01 +01:00
parent 9994c161d4
commit 7fad66ff27
1 changed files with 11 additions and 3 deletions

View File

@ -20,9 +20,15 @@ let
servers = mkOption { type = types.attrsOf serverOpts; default = {}; }; servers = mkOption { type = types.attrsOf serverOpts; default = {}; };
pools = mkOption { type = types.attrsOf serverOpts; default = {}; }; pools = mkOption { type = types.attrsOf serverOpts; default = {}; };
peers = mkOption { type = types.attrsOf serverOpts; default = {}; }; peers = mkOption { type = types.attrsOf serverOpts; default = {}; };
makestep = { makestep = mkOption {
threshold = mkOption { type = types.number; }; default = null;
limit = mkOption { type = types.number; }; type = types.nullOr
(types.submodule {
options = {
threshold = mkOption { type = types.number; default = null;};
limit = mkOption { type = types.number; };
};
});
}; };
allow = mkOption { allow = mkOption {
description = "subnets from which NTP clients are allowed to access the server"; description = "subnets from which NTP clients are allowed to access the server";
@ -48,6 +54,8 @@ let
}; };
}; };
configFile = p: configFile = p:
assert (builtins.trace p.makestep true);
(mapAttrsToList (name: opts: "server ${name} ${concatStringsSep "" opts}") (mapAttrsToList (name: opts: "server ${name} ${concatStringsSep "" opts}")
p.servers) p.servers)
++ ++