0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-19 16:40:32 +03:00
Commit graph

2 commits

Author SHA1 Message Date
Stefan Frijters
dbb71e266a nixos/ntpd: fix permissions error when creating drift file
This fixes "frequency file /var/lib/ntp/ntp.drift.TEMP: Permission denied".

Creating a directory via StateDirectory makes that directory /var/lib/ntp owned by root:root.
However, when running ntpd we change to user ntp (see ntpFlags), so the process cannot
actually use that directory.

Actually creating a home directory for the user at that location solves that problem.

(cherry picked from commit 31942f20f4)
2024-12-22 22:21:04 +00:00
Pyrox
19c40f0e11
nixos/tests/ntpd: init 2024-10-19 14:26:27 -04:00