diff options
| author | Aargh Rai <aargh.rai+git@gmail.com> | 2025-07-03 09:38:43 +0530 |
|---|---|---|
| committer | Aargh Rai <aargh.rai+git@gmail.com> | 2025-07-03 09:38:43 +0530 |
| commit | ff0b4b72f64ae716c8d28d3b94dc8789d14115e3 (patch) | |
| tree | 5723b0bcc7fcfcd49fe23c2b262fbcdfa8a99eee /cachix.nix | |
nvidia & shit
Diffstat (limited to 'cachix.nix')
| -rw-r--r-- | cachix.nix | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/cachix.nix b/cachix.nix new file mode 100644 index 0000000..ecd2d39 --- /dev/null +++ b/cachix.nix @@ -0,0 +1,13 @@ + +# WARN: this file will get overwritten by $ cachix use <name> +{ pkgs, lib, ... }: + +let + folder = ./cachix; + toImport = name: value: folder + ("/" + name); + filterCaches = key: value: value == "regular" && lib.hasSuffix ".nix" key; + imports = lib.mapAttrsToList toImport (lib.filterAttrs filterCaches (builtins.readDir folder)); +in { + inherit imports; + nix.settings.substituters = ["https://cache.nixos.org/"]; +} |
