mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-14 05:29:20 +03:00
Merge pull request #111692 from lopsided98/chrony-initstepslew-types
nixos/chrony: split the initstepslew attrset into options
This commit is contained in:
commit
611bc7c23b
1 changed files with 19 additions and 10 deletions
|
@ -81,17 +81,26 @@ in
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
initstepslew = mkOption {
|
initstepslew = {
|
||||||
type = types.attrsOf (types.either types.bool types.int);
|
enabled = mkOption {
|
||||||
default = {
|
type = types.bool;
|
||||||
enabled = true;
|
default = true;
|
||||||
threshold = 1000; # by default, same threshold as 'ntpd -g' (1000s)
|
description = ''
|
||||||
|
Allow chronyd to make a rapid measurement of the system clock error
|
||||||
|
at boot time, and to correct the system clock by stepping before
|
||||||
|
normal operation begins.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
threshold = mkOption {
|
||||||
|
type = types.either types.float types.int;
|
||||||
|
default = 1000; # by default, same threshold as 'ntpd -g' (1000s)
|
||||||
|
description = ''
|
||||||
|
The threshold of system clock error (in seconds) above which the
|
||||||
|
clock will be stepped. If the correction required is less than the
|
||||||
|
threshold, a slew is used instead.
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
description = ''
|
|
||||||
Allow chronyd to make a rapid measurement of the system clock error at
|
|
||||||
boot time, and to correct the system clock by stepping before normal
|
|
||||||
operation begins.
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
|
|
||||||
directory = mkOption {
|
directory = mkOption {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue