From 7c1fe1455b4911db96187c37c33a6c865454788c Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Fri, 30 Jun 2023 14:02:15 +0200 Subject: [PATCH] Enable NTP using the BSC time server --- m/common/main.nix | 1 + m/common/ntp.nix | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 m/common/ntp.nix diff --git a/m/common/main.nix b/m/common/main.nix index e43ce4f..7054495 100644 --- a/m/common/main.nix +++ b/m/common/main.nix @@ -6,6 +6,7 @@ ./fs.nix ./hw.nix ./net.nix + ./ntp.nix ./slurm.nix ./ssh.nix ./users.nix diff --git a/m/common/ntp.nix b/m/common/ntp.nix new file mode 100644 index 0000000..d4ddb25 --- /dev/null +++ b/m/common/ntp.nix @@ -0,0 +1,9 @@ +{ pkgs, ... }: + +{ + services.ntp.enable = true; + + # Use the NTP server at BSC, as we don't have direct access + # to the outside world + networking.timeServers = [ "84.88.52.36" ]; +}