mirror of
https://codeberg.org/ultra/nixos-dotfiles.git
synced 2024-11-22 22:03:07 +02:00
d2e29dba7a
Signed-off-by: Alex S <stan.alexandru@ichb.ro>
13 lines
419 B
Nix
13 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/"];
|
|
}
|