Add dustbowl nixos configuration

This commit is contained in:
joachimschmidt557 2021-10-03 23:45:49 +02:00
parent d34338944b
commit d70f587539
No known key found for this signature in database
GPG key ID: E0B575BE2884ACC5
4 changed files with 390 additions and 1 deletions

13
nixos/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.binaryCaches = ["https://cache.nixos.org/"];
}