parent
cef068f3b3
commit
c13c1412bf
1 changed files with 13 additions and 1 deletions
|
@ -27,7 +27,10 @@ let
|
|||
${cfg.extraConfig}
|
||||
'';
|
||||
|
||||
chronyFlags = [ "-n" "-m" "-u" "chrony" "-f" "${configFile}" ] ++ cfg.extraFlags;
|
||||
chronyFlags =
|
||||
[ "-n" "-u" "chrony" "-f" "${configFile}" ]
|
||||
++ optional cfg.enableMemoryLocking "-m"
|
||||
++ cfg.extraFlags;
|
||||
in
|
||||
{
|
||||
options = {
|
||||
|
@ -73,6 +76,15 @@ in
|
|||
'';
|
||||
};
|
||||
|
||||
enableMemoryLocking = mkOption {
|
||||
type = types.bool;
|
||||
default = config.environment.memoryAllocator.provider != "graphene-hardened";
|
||||
defaultText = ''config.environment.memoryAllocator.provider != "graphene-hardened"'';
|
||||
description = lib.mdDoc ''
|
||||
Whether to add the `-m` flag to lock memory.
|
||||
'';
|
||||
};
|
||||
|
||||
enableNTS = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
|
|
Loading…
Reference in a new issue