From 5e0baa153e62f8a66462622474e5cd0ee4206b22 Mon Sep 17 00:00:00 2001 From: Profpatsch Date: Sun, 8 Dec 2019 13:40:38 +0100 Subject: treewide: use `runCommandLocal` where applicable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `runCommandLocal` was added to nixpkgs in https://github.com/NixOS/nixpkgs/pull/74642 to speed up trivial `runCommand` derivations by always building them locally. We have a few places where that’s good to use. --- machines/aszlig/managed/shakti.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'machines/aszlig') diff --git a/machines/aszlig/managed/shakti.nix b/machines/aszlig/managed/shakti.nix index 330d644c..8440ce6f 100644 --- a/machines/aszlig/managed/shakti.nix +++ b/machines/aszlig/managed/shakti.nix @@ -26,7 +26,7 @@ # information and the monitor is also very weird because it doesn't # understand the fallback modes. boot.kernelParams = [ "drm_kms_helper.edid_firmware=edid/weird.bin" ]; - hardware.firmware = lib.singleton (pkgs.runCommand "weird-edid" {} '' + hardware.firmware = lib.singleton (pkgs.runCommandLocal "weird-edid" {} '' mkdir -p "$out/lib/firmware/edid" base64 -d > "$out/lib/firmware/edid/weird.bin" <