sudo in hook thinks NoNewPrivleges flag is stil active. I don't have it in me to try to fix this, all my computers are more or less always online, and it doesn't sync time often enough to be noticeable on battery (proabably).
15 lines
275 B
Nix
15 lines
275 B
Nix
{
|
|
lib,
|
|
...
|
|
}:
|
|
{
|
|
config = {
|
|
# Apparently better than reference implementation
|
|
services.chrony.enable = true;
|
|
|
|
networking = {
|
|
# Using european servers
|
|
timeServers = map (n: "${toString n}.europe.pool.ntp.org") (lib.lists.range 0 3);
|
|
};
|
|
};
|
|
}
|