nixpkgs/nixos/modules/services/networking/ntp
Stefan Frijters 31942f20f4 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.
2024-12-22 16:20:31 -06:00
..
chrony.nix
ntpd-rs.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00
ntpd.nix nixos/ntpd: fix permissions error when creating drift file 2024-12-22 16:20:31 -06:00
openntpd.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00