diff --git a/m/common/main.nix b/m/common/main.nix index e43ce4fb0ad5dec7ee6600e5de1852884bb5eb32..705449558cb38a1cd1c48573764ca5515ad8d456 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/net.nix b/m/common/net.nix index 1173cc2d3de475e51b71d9f27388de2c7787bbeb..4970f405fb6ba2b97a0e9e6b7349ceffc25a05e4 100644 --- a/m/common/net.nix +++ b/m/common/net.nix @@ -8,7 +8,7 @@ networking = { enableIPv6 = false; useDHCP = false; - #defaultGateway = "10.0.40.30"; + defaultGateway = "10.0.40.30"; nameservers = ["8.8.8.8"]; proxy = { default = "http://localhost:23080/"; diff --git a/m/common/ntp.nix b/m/common/ntp.nix new file mode 100644 index 0000000000000000000000000000000000000000..d4ddb252d7ce5df92a59760fa3807381d8238b72 --- /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" ]; +}