all repos — archive/nixos-configuration @ 4551a59f04bd3dba4e2d00449389b15040fdd54d

Superseded by nixfiles

nix: install cachix

Alan Pearce
commit

4551a59f04bd3dba4e2d00449389b15040fdd54d

parent

3fbb8b4190e93b3ac58511df2039ee48a412697a

3 files changed, 19 insertions(+), 0 deletions(-)

jump to
M .gitignore.gitignore
@@ -2,3 +2,4 @@ /private/
/hardware-configuration.nix /configuration.nix /darwin-configuration.nix +/cachix
A cachix.nix
@@ -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/"]; +} +
M modules/configuration/nix.nixmodules/configuration/nix.nix
@@ -21,6 +21,10 @@ };
}; }; + environment.systemPackages = with pkgs; [ + cachix + ]; + system.autoUpgrade = { enable = true; flags = [ "--max-jobs" "2" ];