nixnix
This commit is contained in:
parent
cc9175f624
commit
6e9a8fcdf5
1 changed files with 51 additions and 0 deletions
51
modules/system/nix-cli/nix.nix
Normal file
51
modules/system/nix-cli/nix.nix
Normal file
|
|
@ -0,0 +1,51 @@
|
||||||
|
{
|
||||||
|
config
|
||||||
|
, lib
|
||||||
|
, pkgs
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
# To use this feature add -j0 to any nix commad.
|
||||||
|
hostName = "bob.local";
|
||||||
|
|
||||||
|
in {
|
||||||
|
nix = {
|
||||||
|
distributedBuilds = true;
|
||||||
|
settings = {
|
||||||
|
trusted-public-keys = lib.mkAfter [
|
||||||
|
# REMOTE MACHINE PUBLIC KEY WE GENERATE AFTER SETTING UP
|
||||||
|
];
|
||||||
|
builders-use-substitutes = true;
|
||||||
|
substituters = lib.mkAfter [
|
||||||
|
"ssh-ng://nix-ssh@{hostname}"
|
||||||
|
];
|
||||||
|
# allowed-users = [
|
||||||
|
# "@wheel"
|
||||||
|
# "@builders"
|
||||||
|
# ];
|
||||||
|
# trusted-users = [
|
||||||
|
# "root"
|
||||||
|
# "nix-ssh"
|
||||||
|
# ];
|
||||||
|
};
|
||||||
|
buildMachines = [
|
||||||
|
{
|
||||||
|
inherit hostName;
|
||||||
|
protocol = "ssh-ng";
|
||||||
|
maxJobs = 8;
|
||||||
|
systems = [
|
||||||
|
"x86_64-linux"
|
||||||
|
"i686-linux"
|
||||||
|
];
|
||||||
|
supportedFeatures = [
|
||||||
|
"big-parallel"
|
||||||
|
"nixos-test"
|
||||||
|
"kvm"
|
||||||
|
"benchmark"
|
||||||
|
];
|
||||||
|
sshUser = "builder";
|
||||||
|
sshKey = "/root/.ssh/id_ed25519";
|
||||||
|
# publicHostKey = config.local.keys.gerg-desktop_fingerprint;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue