nixos-dotfiles/ultrapc/cachix.nix
Alex Stan 4f001d4ba0 Move the files for ultrapc into a separate directory
Signed-off-by: Alex Stan <stan.alexandru@ichb.ro>
2023-03-25 09:27:36 +02:00

14 lines
419 B
Nix

# 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/"];
}