mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 06:14:57 +01:00
97a449ee8f
This breaks the test. Fun.
30 lines
849 B
Nix
30 lines
849 B
Nix
import ./make-test-python.nix ({ lib, ... }:
|
|
{
|
|
name = "chrony";
|
|
|
|
meta = {
|
|
maintainers = with lib.maintainers; [ fpletz ];
|
|
};
|
|
|
|
nodes = {
|
|
machine = {
|
|
services.chrony.enable = true;
|
|
|
|
specialisation.hardened.configuration = {
|
|
services.chrony.enableMemoryLocking = true;
|
|
environment.memoryAllocator.provider = "graphene-hardened";
|
|
# dhcpcd privsep is incompatible with graphene-hardened
|
|
networking.useNetworkd = true;
|
|
};
|
|
};
|
|
};
|
|
|
|
testScript = ''
|
|
machine.start()
|
|
machine.wait_for_unit('multi-user.target')
|
|
machine.succeed('systemctl is-active chronyd.service')
|
|
machine.succeed('/run/booted-system/specialisation/hardened/bin/switch-to-configuration test')
|
|
machine.succeed('systemctl restart chronyd.service')
|
|
machine.wait_for_unit('chronyd.service')
|
|
'';
|
|
})
|