parent
ebd34a9481
commit
4a85e1c402
7 changed files with 33 additions and 33 deletions
devices
binto
oksys
servivi
wim
|
@ -5,6 +5,7 @@
|
|||
pkgs,
|
||||
...
|
||||
}: {
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
imports = [(modulesPath + "/installer/scan/not-detected.nix")];
|
||||
|
||||
boot = {
|
||||
|
@ -71,6 +72,4 @@
|
|||
qemu
|
||||
virtiofsd
|
||||
];
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
}
|
||||
|
|
|
@ -6,8 +6,10 @@
|
|||
nixpkgs.hostPlatform = "x86_64-linux";
|
||||
imports = [(modulesPath + "/installer/scan/not-detected.nix")];
|
||||
|
||||
services.logind.lidSwitchExternalPower = "ignore";
|
||||
services.logind.lidSwitchDocked = "ignore";
|
||||
services.logind = {
|
||||
lidSwitchDocked = "ignore";
|
||||
lidSwitchExternalPower = "ignore";
|
||||
};
|
||||
|
||||
boot = {
|
||||
loader = {
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
{config, ...}: let
|
||||
servivi = "100.64.0.7";
|
||||
in {
|
||||
# https://nixos.wiki/wiki/Distributed_build
|
||||
home-manager.users.root = {
|
||||
home.file.".ssh/config".text = ''
|
||||
Host ${servivi}
|
||||
|
@ -17,20 +18,22 @@ in {
|
|||
${servivi}.publicKey = "servivi ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMkNW0H4Fl6NFgahlgGbSvglg1DrX4yl1ht9Lp+vHE2A";
|
||||
};
|
||||
|
||||
nix.buildMachines = [
|
||||
{
|
||||
hostName = servivi;
|
||||
system = "x86_64-linux";
|
||||
protocol = "ssh-ng";
|
||||
maxJobs = 1;
|
||||
speedFactor = 2;
|
||||
supportedFeatures = ["nixos-test" "benchmark" "big-parallel" "kvm"];
|
||||
mandatoryFeatures = [];
|
||||
}
|
||||
];
|
||||
nix.distributedBuilds = true;
|
||||
# optional, useful when the builder has a faster internet connection than yours
|
||||
nix.extraOptions = ''
|
||||
builders-use-substitutes = true
|
||||
'';
|
||||
nix = {
|
||||
buildMachines = [
|
||||
{
|
||||
hostName = servivi;
|
||||
system = "x86_64-linux";
|
||||
protocol = "ssh-ng";
|
||||
maxJobs = 1;
|
||||
speedFactor = 2;
|
||||
supportedFeatures = ["nixos-test" "benchmark" "big-parallel" "kvm"];
|
||||
mandatoryFeatures = [];
|
||||
}
|
||||
];
|
||||
distributedBuilds = true;
|
||||
# optional, useful when the builder has a faster internet connection than yours
|
||||
extraOptions = ''
|
||||
builders-use-substitutes = true
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
@ -31,6 +31,7 @@
|
|||
];
|
||||
};
|
||||
|
||||
# https://nixos.wiki/wiki/Distributed_build
|
||||
nixremote = {
|
||||
isNormalUser = true;
|
||||
createHome = true;
|
||||
|
|
|
@ -15,16 +15,7 @@
|
|||
acpi_call
|
||||
];
|
||||
|
||||
kernelParams = [
|
||||
"cryptdevice=UUID=ab82b477-2477-453f-b95f-28e5553ad10d:root"
|
||||
"root=/dev/mapper/root"
|
||||
];
|
||||
|
||||
consoleLogLevel = 0;
|
||||
|
||||
initrd = {
|
||||
verbose = false;
|
||||
systemd.enable = true;
|
||||
availableKernelModules = ["nvme" "xhci_pci" "usb_storage" "sd_mod"];
|
||||
|
||||
luks.devices."root" = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue