hosts/morphius: init new device

Signed-off-by: unexplrd <unexplrd@linerds.us>
This commit is contained in:
2025-05-27 16:47:01 +03:00
parent 5dfa9d62c4
commit 7139cfb640
10 changed files with 216 additions and 4 deletions

View File

@ -0,0 +1,5 @@
{
imports = [
./distributed-build.nix
];
}

View File

@ -0,0 +1,30 @@
{
config,
inputs,
...
}: let
inherit (builtins) readFile;
inherit (config.networking) hostName;
inherit (config.sops) secrets;
inherit (inputs) mysecrets;
pubHost = readFile "${mysecrets}/ssh/ssh_host_ed25519_dunamis.base64";
in {
nix = {
distributedBuilds = true;
buildMachines = [
{
hostName = "dunamis";
publicHostKey = pubHost;
sshKey = secrets."ssh-${hostName}-user".path;
sshUser = "nix-ssh";
supportedFeatures = [
"benchmark"
"big-parallel"
"kvm"
"nixos-test"
];
system = "x86_64-linux";
}
];
};
}