KCNHUB: Hardware config SpiNNaKer config

master
David Crompton 2024-07-29 16:18:08 -04:00
parent bda6871fc7
commit 1cac1e66d9
1 changed files with 15 additions and 3 deletions

View File

@ -49,9 +49,21 @@
# (the default) this is the recommended approach. When using systemd-networkd it's # (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 # still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`. # with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true; # networking.useDHCP = lib.mkDefault true;
# networking.interfaces.eno1.useDHCP = lib.mkDefault true; networking.interfaces.eno1.useDHCP = lib.mkDefault true;
# networking.interfaces.eno2.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"; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";