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.
31 lines
524 B
31 lines
524 B
{ id, ... }:
|
|
{ lib, config, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
imports = [
|
|
./hardware.nix
|
|
./disk.nix
|
|
./network.nix
|
|
./users.nix
|
|
];
|
|
|
|
deployment = {
|
|
targetHost = "10.32.30.94";
|
|
targetUser = "root";
|
|
|
|
tags = [ "node" ];
|
|
};
|
|
|
|
networking.hostName = "node-${fixedWidthNumber 2 id}";
|
|
|
|
nix.settings = {
|
|
substituters = [
|
|
"http://cache.${config.networking.domain}"
|
|
];
|
|
trusted-public-keys = [
|
|
"cache.${config.networking.domain}:dc2abEGJAQfaZiBXhjvjPU0jx/wosQwAOQoz48/G6cA="
|
|
];
|
|
};
|
|
}
|