diff --git a/cachix.nix b/cachix.nix new file mode 100644 index 00000000..cce90a32 --- /dev/null +++ b/cachix.nix @@ -0,0 +1,14 @@ + +# WARN: this file will get overwritten by $ cachix use +{ 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/"]; +} + \ No newline at end of file diff --git a/cachix/all-hies.nix b/cachix/all-hies.nix new file mode 100644 index 00000000..fc6bfb9a --- /dev/null +++ b/cachix/all-hies.nix @@ -0,0 +1,13 @@ + +{ + nix = { + binaryCaches = [ + "https://all-hies.cachix.org" + ]; + binaryCachePublicKeys = [ + "all-hies.cachix.org-1:JjrzAOEUsD9ZMt8fdFbzo3jNAyEWlPAwdVuHw4RD43k=" + ]; + trustedUsers = [ "root" "maralorn" ]; + }; +} + \ No newline at end of file diff --git a/system/default.nix b/system/default.nix index c3aefadf..e6cdb256 100644 --- a/system/default.nix +++ b/system/default.nix @@ -5,6 +5,7 @@ let in { imports = [ "${home-manager}/nixos" + ../cachix.nix ../common ./modules/laptop.nix ./modules/git.nix