Archived
1
0
forked from rarias/bscpkgs

Add xeon08 basic config

This commit is contained in:
2023-05-05 20:18:01 +02:00
parent fd1b467a60
commit a5c7205481
7 changed files with 152 additions and 0 deletions

32
xeon08/configuration.nix Normal file
View File

@@ -0,0 +1,32 @@
{ config, pkgs, lib, modulesPath, ... }:
{
imports = [
../common/main.nix
#(modulesPath + "/installer/netboot/netboot-minimal.nix")
./kernel/kernel.nix
./fs.nix
./users.nix
./slurm.nix
];
# Select this using the ID to avoid mismatches
boot.loader.grub.device = "/dev/disk/by-id/wwn-0x55cd2e414d53564b";
# disable automatic garbage collector
nix.gc.automatic = lib.mkForce false;
# set up both ethernet and infiniband ips
networking = {
hostName = "xeon08";
interfaces.eno1.ipv4.addresses = [ {
address = "10.0.40.8";
prefixLength = 24;
} ];
interfaces.ibp5s0.ipv4.addresses = [ {
address = "10.0.42.8";
prefixLength = 24;
} ];
};
}