From 2d4b178895b3f99e76bf84d46d4b06244256a559 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Fri, 30 Jun 2023 14:01:35 +0200 Subject: [PATCH 1/2] Add the ssfhead node as gateway --- m/common/net.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/m/common/net.nix b/m/common/net.nix index 1173cc2..4970f40 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/"; -- GitLab From 7c1fe1455b4911db96187c37c33a6c865454788c Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Fri, 30 Jun 2023 14:02:15 +0200 Subject: [PATCH 2/2] 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" ]; +} -- GitLab