From 5bd0c45f8ee65545901f1b1ef10080ac50df8ac1 Mon Sep 17 00:00:00 2001 From: maralorn Date: Sat, 11 Feb 2023 21:15:30 +0100 Subject: [PATCH] Add local registry --- nixos/roles/default.nix | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/nixos/roles/default.nix b/nixos/roles/default.nix index 2906acfe..9d715606 100644 --- a/nixos/roles/default.nix +++ b/nixos/roles/default.nix @@ -115,19 +115,26 @@ }; nix = { - settings = { - substituters = lib.mkAfter (pkgs.privateValue [] "binary-caches"); - trusted-public-keys = [ - "nixbuild.net/maralorn-1:cpqv21sJgRL+ROaKY1Gr0k7AKolAKaP3S3iemGxK/30=" - ]; - trusted-users = ["maralorn" "laminar"]; - }; + registry = + lib.mapAttrs (id: flake: { + from = { + type = "indirect"; + inherit id; + }; + inherit flake; + }) + pkgs.flake-inputs; + settings.trusted-users = ["maralorn" "laminar"]; + # substituters = lib.mkAfter (pkgs.privateValue [] "binary-caches"); + # trusted-public-keys = [ + # "nixbuild.net/maralorn-1:cpqv21sJgRL+ROaKY1Gr0k7AKolAKaP3S3iemGxK/30=" + # ]; + # Extra Option which is on by default: allow-import-from-derivation = true extraOptions = '' experimental-features = nix-command flakes fallback = true auto-optimise-store = true builders-use-substitutes = true - allow-import-from-derivation = true ''; optimise = { dates = [];