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.
35 lines
696 B
35 lines
696 B
{ pkgs, lib, config, nodes, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
services.slurm = {
|
|
clusterName = "mogli";
|
|
|
|
controlMachine = "manager";
|
|
|
|
nodeName = map
|
|
(node: "${node.config.networking.hostName} CPUs=64")
|
|
(filter
|
|
(node: elem "node" node.config.deployment.tags)
|
|
(attrValues nodes));
|
|
|
|
partitionName = [
|
|
"all Nodes=ALL AllowGroups=cluster Default=YES MaxTime=INFINITE State=UP"
|
|
];
|
|
|
|
extraConfig = ''
|
|
MailProg=${pkgs.coreutils}/bin/false
|
|
'';
|
|
};
|
|
|
|
services.munge = {
|
|
enable = true;
|
|
password = config.sops.secrets."munge/password".path;
|
|
};
|
|
|
|
sops.secrets."munge/password" = {
|
|
sopsFile = ./secrets.yaml;
|
|
owner = "munge";
|
|
};
|
|
}
|