diff --git a/common/modules/cachix.nix b/common/modules/cachix.nix index 72d9471b..a82ef41d 100644 --- a/common/modules/cachix.nix +++ b/common/modules/cachix.nix @@ -1,4 +1,18 @@ -{...}: { +{ + config, + pkgs, + ... +}: { + environment.systemPackages = with pkgs; [ + (writeShellApplication { + name = "rebuild-no-cache"; + runtimeInputs = [config.nh.package]; + text = '' + nh os switch -- --option binary-caches "https://cache.nixos.org" "$@" + ''; + }) + ]; + nix = { settings = { substituters = [