From 8af5581856e04187a4abf37e5a369370d589b37c Mon Sep 17 00:00:00 2001 From: Tao Tien <29749622+taotien@users.noreply.github.com> Date: Thu, 18 Apr 2024 13:55:43 -0700 Subject: [PATCH] distributed compilation --- systems/NOlaptop.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/systems/NOlaptop.nix b/systems/NOlaptop.nix index 9f94522..63f2f8c 100644 --- a/systems/NOlaptop.nix +++ b/systems/NOlaptop.nix @@ -4,15 +4,31 @@ lib, ... }: { + zramSwap = { + enable = true; + algorithm = "zstd"; + }; nixpkgs.overlays = [ (import ../extras/libinput-overlay.nix) ]; + environment.systemPackages = with pkgs; [ # fw-ectool framework-tool nvtopPackages.amd ]; + nix.buildMachines = [ + { + hostName = "nocomputer"; + systems = ["x86_64-linux"]; + } + ]; + nix.extraOptions = '' + builders-use-substitutes = true + ''; + nix.distributedBuilds = true; + services.power-profiles-daemon.enable = true; services.fwupd.enable = true; services.fprintd.enable = true;