From 1cac1e66d9b2fd8f53087a79e9d73b233bbeac35 Mon Sep 17 00:00:00 2001 From: David Crompton Date: Mon, 29 Jul 2024 16:18:08 -0400 Subject: [PATCH] KCNHUB: Hardware config SpiNNaKer config --- machines/kcnhub/hardware-configuration.nix | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/machines/kcnhub/hardware-configuration.nix b/machines/kcnhub/hardware-configuration.nix index 8202988..199d182 100644 --- a/machines/kcnhub/hardware-configuration.nix +++ b/machines/kcnhub/hardware-configuration.nix @@ -49,9 +49,21 @@ # (the default) this is the recommended approach. When using systemd-networkd it's # still possible to use this option, but it's recommended to use it in conjunction # with explicit per-interface declarations with `networking.interfaces..useDHCP`. - networking.useDHCP = lib.mkDefault true; - # networking.interfaces.eno1.useDHCP = lib.mkDefault true; - # networking.interfaces.eno2.useDHCP = lib.mkDefault true; + # networking.useDHCP = lib.mkDefault true; + networking.interfaces.eno1.useDHCP = lib.mkDefault true; + # Used to talk with the SpiNNaker + networking.interfaces.eno2 = { + ipv4.routes = [{ + address = "192.168.240.0"; + prefixLength = 24; + via = "192.168.240.254"; + }]; + ipv4.addresses = [{ + address = "192.168.240.254"; + prefixLength = 24; + }]; + useDHCP = lib.mkDefault false; + }; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";