This commit is contained in:
Evan Reichard 2025-04-02 23:20:01 +00:00
parent 712d10cef3
commit d4675ed746
2 changed files with 0 additions and 33 deletions

View File

@ -1,32 +0,0 @@
{ config, lib, pkgs, namespace, ... }:
let
inherit (lib) mkIf;
cfg = config.${namespace}.system.time;
in
{
options.${namespace}.system.time = {
enable = lib.mkEnableOption "time related settings";
};
config = mkIf cfg.enable {
environment.systemPackages = [ pkgs.openntpd ];
networking.timeServers = [
"0.nixos.pool.ntp.org"
"1.nixos.pool.ntp.org"
"2.nixos.pool.ntp.org"
"3.nixos.pool.ntp.org"
];
services.openntpd = {
enable = true;
extraConfig = ''
listen on 127.0.0.1
listen on ::1
'';
};
time.timeZone = "America/New_York";
};
}

View File

@ -12,7 +12,6 @@ in
nix = enabled;
system = {
time = enabled;
boot = {
enable = true;
showNotch = true;