nixos/chrony: add systemd service notify support (#416715)

This commit is contained in:
Franz Pletz
2025-06-21 08:38:17 +02:00
committed by GitHub
2 changed files with 8 additions and 2 deletions
@@ -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`.
'';
}
];
};
}
-1
View File
@@ -13,7 +13,6 @@ import ./make-test-python.nix (
specialisation.hardened.configuration = {
services.chrony.enableMemoryLocking = true;
environment.memoryAllocator.provider = "graphene-hardened";
};
};
};