Skip to content

Commit

Permalink
Use DOST-PAGASA + Cloudflare Time Service for the NTP servers
Browse files Browse the repository at this point in the history
Alongside updating the enabled feature flags for Nix.

Signed-off-by: Andrei Jiroh Halili <[email protected]>
  • Loading branch information
ajhalili2006 committed Jan 1, 2025
1 parent fc5f832 commit abba8eb
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 3 deletions.
1 change: 1 addition & 0 deletions hosts/stellapent-cier/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
[
./hardware-configuration.nix
../../shared/meta-configs.nix
../../shared/systemd.nix
../../shared/networking.nix
../../shared/locale.nix
../../shared/server/tailscale.nix
Expand Down
11 changes: 8 additions & 3 deletions shared/meta-configs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,20 @@

nix = {
settings = {
# See https://nix.dev/manual/nix/latest/development/experimental-features
# for latest supported feature flags.
experimental-features = [
"nix-command"
"flakes"
"repl-flake"
"ca-derivations"
"cgroups"
"impure-derivations"
#"daemon-trust-override"
#"auto-allocate-uids"
"git-hashing"
"fetch-tree"
"fetch-closure"
"local-overlay-store"
"mounted-ssh-store"
# "verified-fetches"
];

trusted-users = [
Expand Down
19 changes: 19 additions & 0 deletions shared/systemd.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{ ... }:

{
services.timesyncd = {
enable = true;
servers = [
# https://pubfiles.pagasa.dost.gov.ph/tamss/oras/time_synchronization_for_windows_7_and_8.pdf
"ntp.pagasa.dost.gov.ph"
# https://www.cloudflare.com/time/
"time.cloudflare.com"
];
fallbackServers = [
"0.asia.pool.ntp.org"
"1.asia.pool.ntp.org"
"2.asia.pool.ntp.org"
"3.asia.pool.ntp.org"
];
};
}

0 comments on commit abba8eb

Please sign in to comment.