mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
chrony service: Integration with other ntp daemons
This commit is contained in:
parent
1a79058a81
commit
c459e269eb
1 changed files with 4 additions and 6 deletions
|
@ -47,12 +47,7 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
servers = mkOption {
|
servers = mkOption {
|
||||||
default = [
|
default = config.services.ntp.servers;
|
||||||
"0.nixos.pool.ntp.org"
|
|
||||||
"1.nixos.pool.ntp.org"
|
|
||||||
"2.nixos.pool.ntp.org"
|
|
||||||
"3.nixos.pool.ntp.org"
|
|
||||||
];
|
|
||||||
description = ''
|
description = ''
|
||||||
The set of NTP servers from which to synchronise.
|
The set of NTP servers from which to synchronise.
|
||||||
'';
|
'';
|
||||||
|
@ -90,6 +85,8 @@ in
|
||||||
# Make chronyc available in the system path
|
# Make chronyc available in the system path
|
||||||
environment.systemPackages = [ pkgs.chrony ];
|
environment.systemPackages = [ pkgs.chrony ];
|
||||||
|
|
||||||
|
systemd.services.ntpd.enable = false;
|
||||||
|
|
||||||
users.extraUsers = singleton
|
users.extraUsers = singleton
|
||||||
{ name = chronyUser;
|
{ name = chronyUser;
|
||||||
uid = config.ids.uids.chrony;
|
uid = config.ids.uids.chrony;
|
||||||
|
@ -102,6 +99,7 @@ in
|
||||||
|
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
after = [ "network.target" ];
|
after = [ "network.target" ];
|
||||||
|
conflicts = [ "ntpd.service" "systemd-timesyncd.service" ];
|
||||||
|
|
||||||
path = [ chrony ];
|
path = [ chrony ];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue