From 1f9afe05773abc6e8e4ceaa6bab99a62a4f021c8 Mon Sep 17 00:00:00 2001 From: cydiralis Date: Sat, 28 Jun 2025 00:31:33 +0100 Subject: [PATCH] set up my main desktop as a remote builder for my steam deck as jovian does not have a cache --- base/patio/configuration.nix | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/base/patio/configuration.nix b/base/patio/configuration.nix index 2cee878..095f65c 100644 --- a/base/patio/configuration.nix +++ b/base/patio/configuration.nix @@ -11,7 +11,23 @@ ]; nix.package = pkgs.lix; - + nix.buildMachines = [ { + hostName = "alyx@192.168.1.145"; + system = "x86_64-linux"; + protocol = "ssh-ng"; + # if the builder supports building for multiple architectures, + # replace the previous line by, e.g. + # systems = ["x86_64-linux" "aarch64-linux"]; + 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 + ''; services.desktopManager.plasma6.enable = true; jovian.devices.steamdeck.enable = true; jovian.steam.autoStart = true; @@ -27,7 +43,6 @@ programs = { adb.enable = true; firefox.enable = true; - fish.enable = true; flashrom.enable = true; nix-ld.enable = true; nix-ld.libraries = with pkgs; [xorg.libxcb libao xorg.libX11 libusb1 cargo rustc pkg-config cacert];