about summary refs log tree commit diff
path: root/modules
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2019-12-08 13:40:38 +0100
committerProfpatsch <mail@profpatsch.de>2019-12-08 13:55:01 +0100
commit5e0baa153e62f8a66462622474e5cd0ee4206b22 (patch)
tree0f1682c3b137feebd5cf3e50814203ff784db1eb /modules
parentf3bc66cbbc4e14940c5b05b1078d1b40fb9807ee (diff)
treewide: use `runCommandLocal` where applicable
`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.
Diffstat (limited to 'modules')
-rw-r--r--modules/core/lazy-packages.nix2
-rw-r--r--modules/hardware/t100ha/default.nix2
-rw-r--r--modules/user/aszlig/services/vlock/default.nix2
-rw-r--r--modules/user/openlab/speedtest.nix2
4 files changed, 4 insertions, 4 deletions
diff --git a/modules/core/lazy-packages.nix b/modules/core/lazy-packages.nix
index 80053396..16f6587e 100644
--- a/modules/core/lazy-packages.nix
+++ b/modules/core/lazy-packages.nix
@@ -12,7 +12,7 @@ let
   # The command used to fetch the store path from the binary cache.
   fetchSubstitute = "${escapeShellArg "${pkgs.nix}/bin/nix-store"} -r";
 
-  mkWrapper = package: pkgs.runCommand "${package.name}-lazy" {
+  mkWrapper = package: pkgs.runCommandLocal "${package.name}-lazy" {
     inherit package;
   } ''
     encoded="$(echo "$package" | ${encoder})"
diff --git a/modules/hardware/t100ha/default.nix b/modules/hardware/t100ha/default.nix
index 14108c6e..0d615624 100644
--- a/modules/hardware/t100ha/default.nix
+++ b/modules/hardware/t100ha/default.nix
@@ -8,7 +8,7 @@ in {
   options.vuizvui.hardware.t100ha.enable = lib.mkEnableOption desc;
 
   config = lib.mkIf cfg.enable {
-    hardware.firmware = lib.singleton (pkgs.runCommand "t100ha-firmware" {
+    hardware.firmware = lib.singleton (pkgs.runCommandLocal "t100ha-firmware" {
       params = ./brcmfmac43340-sdio.txt;
       fwpkg = pkgs.firmwareLinuxNonfree;
       install = "install -vD -m 0644";
diff --git a/modules/user/aszlig/services/vlock/default.nix b/modules/user/aszlig/services/vlock/default.nix
index 439c1b07..c76e176f 100644
--- a/modules/user/aszlig/services/vlock/default.nix
+++ b/modules/user/aszlig/services/vlock/default.nix
@@ -3,7 +3,7 @@
 let
   cfg = config.vuizvui.user.aszlig.services.vlock;
 
-  messageFile = pkgs.runCommand "message.cat" {} ''
+  messageFile = pkgs.runCommandLocal "message.cat" {} ''
     echo -en '\e[H\e[2J\e[?25l' > "$out"
     "${pkgs.vuizvui.aszlig.aacolorize}/bin/aacolorize" \
       "${./message.cat}" "${./message.colmap}" \
diff --git a/modules/user/openlab/speedtest.nix b/modules/user/openlab/speedtest.nix
index e8770410..6b6d72e3 100644
--- a/modules/user/openlab/speedtest.nix
+++ b/modules/user/openlab/speedtest.nix
@@ -6,7 +6,7 @@ let
   bin = drv: name: "${lib.getBin drv}/bin/${name}";
   cfg = config.vuizvui.user.openlab.speedtest;
 
-  py = pkgs.runCommand "speedtest.py" {} ''
+  py = pkgs.runCommandLocal "speedtest.py" {} ''
     cat ${./speedtest.py} \
       | sed -e 's|^PING_BIN =.*$|PING_BIN = "${config.security.wrapperDir}/ping"|' \
       > $out