From e46687457013b31c044cd916cd9005cd0f4ebde7 Mon Sep 17 00:00:00 2001 From: kenny Date: Thu, 2 Oct 2025 18:34:55 +0300 Subject: [PATCH] added remote build user in box --- hosts/box/default.nix | 1 + hosts/box/remotebuild_user.nix | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 hosts/box/remotebuild_user.nix diff --git a/hosts/box/default.nix b/hosts/box/default.nix index f5ddb8c..2acdb34 100644 --- a/hosts/box/default.nix +++ b/hosts/box/default.nix @@ -10,6 +10,7 @@ ./glance.nix ./packages.nix ./hardware-configuration.nix + ./remotebuild_user.nix ../../modules/common/nix.nix ../../modules/raspberrypi.nix ../../modules/common/networking.nix diff --git a/hosts/box/remotebuild_user.nix b/hosts/box/remotebuild_user.nix new file mode 100644 index 0000000..233c93f --- /dev/null +++ b/hosts/box/remotebuild_user.nix @@ -0,0 +1,17 @@ +{ config, pkgs, ... }: + +{ + nix.buildMachines = [ { + hostName = "builder"; + system = "x86_64-linux"; + protocol = "ssh-ng"; + maxJobs = 1; + speedFactor = 2; + supportedFeatures = [ "nixos-test" "benchmark" "big-parallel" "kvm" ]; + mandatoryFeatues = [ ]; + } ]; + nix.distributedBuilds = true; + nix.extraOptions = '' + builders-use-substitutes = true + ''; +}