1
0
Fork 0

Add cachix

This commit is contained in:
Malte Brandy 2019-05-19 21:23:53 +02:00
parent b7391c89e6
commit f70683bbd5
No known key found for this signature in database
GPG key ID: 226A2D41EF5378C9
3 changed files with 28 additions and 0 deletions

14
cachix.nix Normal file
View file

@ -0,0 +1,14 @@
# 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/"];
}

13
cachix/all-hies.nix Normal file
View file

@ -0,0 +1,13 @@
{
nix = {
binaryCaches = [
"https://all-hies.cachix.org"
];
binaryCachePublicKeys = [
"all-hies.cachix.org-1:JjrzAOEUsD9ZMt8fdFbzo3jNAyEWlPAwdVuHw4RD43k="
];
trustedUsers = [ "root" "maralorn" ];
};
}

View file

@ -5,6 +5,7 @@ let
in {
imports = [
"${home-manager}/nixos"
../cachix.nix
../common
./modules/laptop.nix
./modules/git.nix