diff --git a/home/program/bash/module/Nix.nix b/home/program/bash/module/Nix.nix index 31424bbe..5d00c7a0 100644 --- a/home/program/bash/module/Nix.nix +++ b/home/program/bash/module/Nix.nix @@ -60,5 +60,11 @@ nix hash to-sri --type sha256 $(nix-prefetch-url "''${url}") } + + # Run nix locally with no builders. + # Usage: nix_local + function nix_local() { + nix --option max-jobs $(_core_count) --builders "" --substituters https://cache.nixos.org ''${@} + } ''; }