From 37f5935b3f490d43973b0ba362fa5bfb3d5d2e49 Mon Sep 17 00:00:00 2001 From: Vinzenz Schroeter Date: Tue, 31 Oct 2023 14:43:00 +0100 Subject: [PATCH] enable cachix --- modules/nixpkgs.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/nixpkgs.nix b/modules/nixpkgs.nix index cb45389..4843192 100644 --- a/modules/nixpkgs.nix +++ b/modules/nixpkgs.nix @@ -24,6 +24,13 @@ in { allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) config.my.allowUnfreePackages; }; + nix = { + settings = { + substituters = ["https://nix-community.cachix.org" "https://cache.nixos.org/"]; + trusted-public-keys = ["nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="]; + }; + }; + system = { stateVersion = "22.11"; # enable auto updates