From ceabb5261ac3d6ebc0143f3391af976d9e1c2acf Mon Sep 17 00:00:00 2001 From: Christoph Hollizeck Date: Wed, 29 Oct 2025 11:09:22 +0100 Subject: [PATCH] nix: add caches to new config --- modules/base/system/nixdaemon.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/modules/base/system/nixdaemon.nix b/modules/base/system/nixdaemon.nix index 826c6e5..ed765e9 100644 --- a/modules/base/system/nixdaemon.nix +++ b/modules/base/system/nixdaemon.nix @@ -44,6 +44,7 @@ ++ lib.optional config.services.hydra.enable "hydra hydra-www hydra-evaluator hydra-queue-runner"; in { + nix-path = "nixpkgs=flake:nixpkgs"; experimental-features = "nix-command flakes"; http-connections = 50; warn-dirty = false; @@ -53,6 +54,18 @@ trusted-users = users; allowed-users = users; allowed-uris = "github: https://github.com/ git+https://github.com/ gitlab: https://gitlab.com/ git+https://gitlab.com/"; + substituters = [ + "https://cache.lix.systems" + "https://nix-community.cachix.org" + "https://nixcache.christophhollizeck.dev" + "https://hyprland.cachix.org" + ]; + trusted-public-keys = [ + "cache.lix.systems:aBnZUw8zA7H35Cz2RyKFVs3H4PlGTLawyY5KRbvJR8o=" + "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" + "christophhollizeck.dev:7pPAvm9xqFQB8FDApVNL6Tii1Jsv+Sj/LjEIkdeGhbA=" + "hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc=" + ]; } // (lib.optionalAttrs config.programs.direnv.enable { keep-outputs = true;