From b9f4305ea261179da69f9180fbf29ffa72208c50 Mon Sep 17 00:00:00 2001 From: "Alexander \"PapaTutuWawa" Date: Fri, 30 Jul 2021 11:18:27 +0200 Subject: [PATCH 1/2] offload: Fix naming --- modules/programs/distributed-build/offload.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/modules/programs/distributed-build/offload.nix b/modules/programs/distributed-build/offload.nix index 073c888..8347cd0 100644 --- a/modules/programs/distributed-build/offload.nix +++ b/modules/programs/distributed-build/offload.nix @@ -1,10 +1,12 @@ { pkgs, ... }: -{ +let + network = import ../../network.nix; +in { nix = { distributedBuilds = true; buildMachines = [{ - hostName = "mikulinux"; + hostName = "miku"; systems = [ "x86_64-linux" "i686-linux" ]; maxJobs = 4; speedFactor = 2; @@ -13,8 +15,8 @@ }; programs.ssh.extraConfig = '' -Host mikulinux - HostName 192.168.178.38 +Host miku + HostName ${network.miku} User builder IdentitiesOnly yes IdentityFile /root/.ssh/id_builder From f554bdc38283d0b5ea330c2d113a23bd17bd89a8 Mon Sep 17 00:00:00 2001 From: "Alexander \"PapaTutuWawa" Date: Fri, 30 Jul 2021 11:18:38 +0200 Subject: [PATCH 2/2] ayame: Allow build offloading --- ayame.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ayame.nix b/ayame.nix index 8b6f40c..25e7fe4 100644 --- a/ayame.nix +++ b/ayame.nix @@ -9,7 +9,8 @@ in { ./modules/hardware/generic.nix ./modules/hardware/bluetooth.nix ./modules/hardware/wifi.nix ./modules/hardware/video.nix ./modules/hardware/mobile.nix ./modules/fonts.nix ./modules/users/alexander.nix - ./modules/programs/zsh ./modules/programs/mpv ./modules/programs/tmux ./modules/programs/firefox ./modules/programs/gnome-terminal ./modules/programs/gnome ./modules/programs/nonvm + ./modules/programs/zsh ./modules/programs/mpv ./modules/programs/git ./modules/programs/tmux ./modules/programs/firefox ./modules/programs/gnome-terminal ./modules/programs/gnome ./modules/programs/nonvm + ./modules/programs/distributed-build/offload.nix ]; nixpkgs.overlays = [