some updates especially to nixos

This commit is contained in:
Chris Cochrun 2022-09-15 16:28:11 -05:00
parent f1349e79f1
commit 08db8e3b56
7 changed files with 50 additions and 8 deletions

13
system/syl/cachix.nix Normal file
View file

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