Add cachix
This commit is contained in:
parent
b7391c89e6
commit
f70683bbd5
14
cachix.nix
Normal file
14
cachix.nix
Normal 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
13
cachix/all-hies.nix
Normal file
|
@ -0,0 +1,13 @@
|
|||
|
||||
{
|
||||
nix = {
|
||||
binaryCaches = [
|
||||
"https://all-hies.cachix.org"
|
||||
];
|
||||
binaryCachePublicKeys = [
|
||||
"all-hies.cachix.org-1:JjrzAOEUsD9ZMt8fdFbzo3jNAyEWlPAwdVuHw4RD43k="
|
||||
];
|
||||
trustedUsers = [ "root" "maralorn" ];
|
||||
};
|
||||
}
|
||||
|
|
@ -5,6 +5,7 @@ let
|
|||
in {
|
||||
imports = [
|
||||
"${home-manager}/nixos"
|
||||
../cachix.nix
|
||||
../common
|
||||
./modules/laptop.nix
|
||||
./modules/git.nix
|
||||
|
|
Loading…
Reference in a new issue