os/profiles/cachix/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
380 B
Nix
Raw Normal View History

2023-01-28 22:51:33 +00:00
{
pkgs,
lib,
...
}: let
folder = ./.;
toImport = name: value: folder + ("/" + name);
filterCaches = key: value: value == "regular" && lib.hasSuffix ".nix" key && key != "default.nix";
imports = lib.mapAttrsToList toImport (lib.filterAttrs filterCaches (builtins.readDir folder));
2023-01-28 22:51:33 +00:00
in {
inherit imports;
2023-01-28 22:51:33 +00:00
nix.settings.substituters = ["https://cache.nixos.org/"];
}