Files
nixos-blueprint/hosts/eldrid/nix.nix
unexplrd 27fe6b6b8d hosts/dunamis/nix.nix: set lix
hosts/eldrid/nix.nix: set lix

Signed-off-by: unexplrd <unexplrd@linerds.us>
2025-04-06 18:13:50 +03:00

39 lines
938 B
Nix

# TODO: better file name
{
config,
inputs,
pkgs,
...
}: let
hostName =
if (config.networking.hostName == "vylxae")
then "sarien"
else config.networking.hostName;
inherit (config.sops) secrets;
inherit (inputs) mysecrets;
in {
imports = with inputs; [
# determinate.nixosModules.default
];
nix = {
package = pkgs.lix;
channel.enable = false;
daemonCPUSchedPolicy = "idle";
settings = {
experimental-features = ["nix-command" "flakes"];
builders-use-substitutes = true;
};
distributedBuilds = true;
buildMachines = [
{
hostName = "dunamis";
sshUser = "nix-ssh";
system = "x86_64-linux";
sshKey = secrets."ssh-${hostName}-user".path;
supportedFeatures = ["nixos-test" "big-parallel" "kvm" "benchmark"];
publicHostKey = builtins.readFile "${mysecrets}/ssh/ssh_host_ed25519_dunamis.base64";
}
];
};
}