forked from DGNum/liminix
fix makestep type
This commit is contained in:
parent
9994c161d4
commit
7fad66ff27
1 changed files with 11 additions and 3 deletions
|
@ -20,10 +20,16 @@ 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;
|
||||||
|
type = types.nullOr
|
||||||
|
(types.submodule {
|
||||||
|
options = {
|
||||||
|
threshold = mkOption { type = types.number; default = null;};
|
||||||
limit = mkOption { type = types.number; };
|
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";
|
||||||
type = types.listOf types.str;
|
type = types.listOf types.str;
|
||||||
|
@ -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)
|
||||||
++
|
++
|
||||||
|
|
Loading…
Reference in a new issue