Add cachix

work
Matthew Ess 2020-01-03 01:05:19 -05:00
parent 730db1e668
commit 120bcc56e0
6 changed files with 68 additions and 2 deletions

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

12
cachix/hercules-ci.nix Normal file
View File

@ -0,0 +1,12 @@
{
nix = {
binaryCaches = [
"https://hercules-ci.cachix.org"
];
binaryCachePublicKeys = [
"hercules-ci.cachix.org-1:ZZeDl9Va+xe9j+KqdzoBZMFJHVQ42Uu/c/1/KMC5Lw0="
];
};
}

12
cachix/hie-nix.nix Normal file
View File

@ -0,0 +1,12 @@
{
nix = {
binaryCaches = [
"https://hie-nix.cachix.org"
];
binaryCachePublicKeys = [
"hie-nix.cachix.org-1:EjBSHzF6VmDnzqlldGXbi0RM3HdjfTU3yDRi9Pd0jTY="
];
};
}

12
cachix/matthewess.nix Normal file
View File

@ -0,0 +1,12 @@
{
nix = {
binaryCaches = [
"https://matthewess.cachix.org"
];
binaryCachePublicKeys = [
"matthewess.cachix.org-1:dlcWfdyp8KTqlWXYIupL2+GM3hkWAojTl+WOBqGt/X0="
];
};
}

12
cachix/nix-tools.nix Normal file
View File

@ -0,0 +1,12 @@
{
nix = {
binaryCaches = [
"https://nix-tools.cachix.org"
];
binaryCachePublicKeys = [
"nix-tools.cachix.org-1:ebBEBZLogLxcCvipq2MTvuHlP7ZRdkazFSQsbs0Px1A="
];
};
}

View File

@ -5,8 +5,11 @@
{ config, pkgs, ... }:
{
imports = [ # Include the results of the hardware scan.
imports = [
# Include the results of the hardware scan.
./hardware-configuration.nix
# Cachix caches
./cachix.nix
# Overlays
<home-manager/nixos>
];
@ -85,8 +88,10 @@
programs = {
fish.enable = true;
seahorse.enable = true;
light.enable = true;
nm-applet.enable = true;
seahorse.enable = true;
ssh = { startAgent = true; };
};
# List services that you want to enable: