Squash merge dev into master
This commit is contained in:
parent
66dc310ab2
commit
6d9c3c7945
3 changed files with 27 additions and 0 deletions
13
hosts/cachix.nix
Normal file
13
hosts/cachix.nix
Normal 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.settings.substituters = ["https://cache.nixos.org/"];
|
||||||
|
}
|
||||||
13
hosts/cachix/cobray.nix
Normal file
13
hosts/cachix/cobray.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
|
||||||
|
{
|
||||||
|
nix = {
|
||||||
|
settings = {
|
||||||
|
substituters = [
|
||||||
|
"https://cobray.cachix.org"
|
||||||
|
];
|
||||||
|
trusted-public-keys = [
|
||||||
|
"cobray.cachix.org-1:6ZmcK5aWb30lKS4VkEkPV2YkMv8yXYu5eQjY9D6r8kk="
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -7,6 +7,7 @@
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
./system-packages.nix
|
./system-packages.nix
|
||||||
../modules/default.nix
|
../modules/default.nix
|
||||||
|
./cachix.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
nix.gc = {
|
nix.gc = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue