hosts/eldrid/nix.nix: sync nix hosts/sarien/nix.nix: sync nix Signed-off-by: unexplrd <unexplrd@linerds.us>
35 lines
819 B
Nix
35 lines
819 B
Nix
# TODO: better file name
|
|
{
|
|
config,
|
|
inputs,
|
|
# pkgs,
|
|
...
|
|
}: let
|
|
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-eldrid-user".path;
|
|
supportedFeatures = ["nixos-test" "big-parallel" "kvm" "benchmark"];
|
|
publicHostKey = builtins.readFile "${mysecrets}/ssh/ssh_host_ed25519_dunamis.base64";
|
|
}
|
|
];
|
|
};
|
|
}
|