Skip to content

Commit f6bd524

Browse files
committed
Add IOG nix cache in flake configuration
From https://nixos.org/manual/nix/unstable/command-ref/new-cli/nix3-flake.html#flake-format > `nixConfig`: a set of `nix.conf` options to be set when evaluating any part of a flake. In the interests of security, only a small set of whitelisted options (currently `bash-prompt`, `bash-prompt-prefix`, `bash-prompt-suffix`, and `flake-registry`) are allowed to be set without confirmation so long as `accept-flake-config` is not set in the global configuration.
1 parent ba13d45 commit f6bd524

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

flake.nix

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,4 +147,14 @@
147147
];
148148
};
149149
});
150+
151+
# --- Flake Local Nix Configuration ----------------------------
152+
nixConfig = {
153+
# This sets the flake to use the IOG nix cache.
154+
# Nix should ask for permission before using it,
155+
# but remove it here if you do not want it to.
156+
extra-substituters = ["https://cache.iog.io"];
157+
extra-trusted-public-keys = ["hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ="];
158+
allow-import-from-derivation = "true";
159+
};
150160
}

0 commit comments

Comments
 (0)