zaneyos/config/system/ntp.nix

7 lines
195 B
Nix
Raw Normal View History

{ config, lib, options, ... }:
let inherit (import ../../options.nix) ntp; in
lib.mkIf (ntp == true) {
networking.timeServers = options.networking.timeServers.default ++ [ "pool.ntp.org" ];
}