adda cachix
This commit is contained in:
parent
1326524e4a
commit
2f819dcfba
3 changed files with 28 additions and 0 deletions
14
nixos/cachix.nix
Normal file
14
nixos/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
nixos/cachix/cyplo.nix
Normal file
13
nixos/cachix/cyplo.nix
Normal file
|
@ -0,0 +1,13 @@
|
|||
|
||||
{
|
||||
nix = {
|
||||
binaryCaches = [
|
||||
"https://cyplo.cachix.org"
|
||||
];
|
||||
binaryCachePublicKeys = [
|
||||
"cyplo.cachix.org-1:6cmlYl6tQ1eidsjU2tw6uGN2hmzQ+P5uiQhuo6d1P5o="
|
||||
];
|
||||
|
||||
};
|
||||
}
|
||||
|
|
@ -13,6 +13,7 @@ in
|
|||
./common-hardware.nix
|
||||
./common-services.nix
|
||||
./vim.nix
|
||||
./cachix.nix
|
||||
];
|
||||
|
||||
nixpkgs.config = {
|
||||
|
|
Loading…
Reference in a new issue