NixOS configuration for HPC cluster https://docs.hpc.informatik.hs-fulda.de/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

33 lines
460 B

{ lib, ... }:
with lib;
let
nrNodes = 4;
mkMachine = { name, type, opts ? { } }: rec {
inherit name type opts;
path = ./machines/${type};
gather = ./gathered/${name};
};
manager = mkMachine {
name = "manager";
type = "manager";
};
nodes = genList
(i: mkMachine {
name = "node-${fixedWidthNumber 2 i}";
type = "node";
opts = { id = i; };
})
nrNodes;
in
concatLists [
[ manager ]
nodes
]