Enable NTP using the BSC time server

This commit is contained in:
Rodrigo Arias 2023-06-30 14:02:15 +02:00
parent 2d4b178895
commit 7c1fe1455b
2 changed files with 10 additions and 0 deletions

View File

@ -6,6 +6,7 @@
./fs.nix
./hw.nix
./net.nix
./ntp.nix
./slurm.nix
./ssh.nix
./users.nix

9
m/common/ntp.nix Normal file
View File

@ -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" ];
}