nixos/chrony: add systemd service notify support (#416715)
This commit is contained in:
@@ -237,7 +237,7 @@ in
|
||||
|
||||
unitConfig.ConditionCapability = "CAP_SYS_TIME";
|
||||
serviceConfig = {
|
||||
Type = "simple";
|
||||
Type = "notify";
|
||||
ExecStart = "${chronyPkg}/bin/chronyd ${builtins.toString chronyFlags}";
|
||||
|
||||
# Proc filesystem
|
||||
@@ -318,6 +318,13 @@ in
|
||||
Alternatively, disable this behaviour by `services.chrony.enableRTCTrimming = false;`
|
||||
'';
|
||||
}
|
||||
{
|
||||
assertion = !(cfg.enable && config.environment.memoryAllocator.provider == "graphene-hardened");
|
||||
message = ''
|
||||
Chrony doesn't work with the graphene-hardened memory allocator set by
|
||||
`environment.memoryAllocator.provider`.
|
||||
'';
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -13,7 +13,6 @@ import ./make-test-python.nix (
|
||||
|
||||
specialisation.hardened.configuration = {
|
||||
services.chrony.enableMemoryLocking = true;
|
||||
environment.memoryAllocator.provider = "graphene-hardened";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user