From 6d9c3c7945c772dc2e0537e321f3ec04fa3ec6c0 Mon Sep 17 00:00:00 2001 From: alsaiduq-lab Date: Wed, 4 Jun 2025 12:30:15 -0600 Subject: [PATCH] Squash merge dev into master --- hosts/cachix.nix | 13 +++++++++++++ hosts/cachix/cobray.nix | 13 +++++++++++++ hosts/configuration.nix | 1 + 3 files changed, 27 insertions(+) create mode 100644 hosts/cachix.nix create mode 100644 hosts/cachix/cobray.nix diff --git a/hosts/cachix.nix b/hosts/cachix.nix new file mode 100644 index 0000000..ecd2d39 --- /dev/null +++ b/hosts/cachix.nix @@ -0,0 +1,13 @@ + +# 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.settings.substituters = ["https://cache.nixos.org/"]; +} diff --git a/hosts/cachix/cobray.nix b/hosts/cachix/cobray.nix new file mode 100644 index 0000000..63f3074 --- /dev/null +++ b/hosts/cachix/cobray.nix @@ -0,0 +1,13 @@ + +{ + nix = { + settings = { + substituters = [ + "https://cobray.cachix.org" + ]; + trusted-public-keys = [ + "cobray.cachix.org-1:6ZmcK5aWb30lKS4VkEkPV2YkMv8yXYu5eQjY9D6r8kk=" + ]; + }; + }; +} diff --git a/hosts/configuration.nix b/hosts/configuration.nix index 12f3f6c..c05205a 100644 --- a/hosts/configuration.nix +++ b/hosts/configuration.nix @@ -7,6 +7,7 @@ ./hardware-configuration.nix ./system-packages.nix ../modules/default.nix + ./cachix.nix ]; nix.gc = {