From 0603a18d9e4ab2153afc5313dd7e9d4f072bd27d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20B=C3=B6hme?= Date: Sat, 23 Sep 2023 09:50:12 +0200 Subject: [PATCH] feat: move caches to flake --- flake.nix | 13 +++++++++++++ modules/programs/nix.nix | 8 -------- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/flake.nix b/flake.nix index 8e518a6..cf501b2 100644 --- a/flake.nix +++ b/flake.nix @@ -211,4 +211,17 @@ default = overlay; }; }; + + nixConfig = { + extra-substituters = [ + "https://hyprland.cachix.org" + "https://nix-community.cachix.org" + "https://pre-commit-hooks.cachix.org" + ]; + extra-trusted-public-keys = [ + "hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc=" + "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" + "pre-commit-hooks.cachix.org-1:Pkk3Panw5AW24TOv6kz3PvLhlH8puAsJTBbOPmBo7Rc=" + ]; + }; } diff --git a/modules/programs/nix.nix b/modules/programs/nix.nix index c358dbc..61025b4 100644 --- a/modules/programs/nix.nix +++ b/modules/programs/nix.nix @@ -57,17 +57,9 @@ in settings = { substituters = [ "https://cache.nixos.org/" - "https://jupyterwith.cachix.org" - "https://nix-community.cachix.org" - "https://pre-commit-hooks.cachix.org" - "https://hyprland.cachix.org" ]; trusted-public-keys = [ - "jupyterwith.cachix.org-1:/kDy2B6YEhXGJuNguG1qyqIodMyO4w8KwWH4/vAc7CI=" - "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" - "pre-commit-hooks.cachix.org-1:Pkk3Panw5AW24TOv6kz3PvLhlH8puAsJTBbOPmBo7Rc=" - "hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc=" ]; trusted-users = [ "root" "@wheel" ];