Skip to content

Commit

Permalink
Add IOG nix cache in flake configuration
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
yvan-sraka committed Aug 8, 2022
1 parent ba13d45 commit f6bd524
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions flake.nix
Expand Up @@ -147,4 +147,14 @@
];
};
});

# --- Flake Local Nix Configuration ----------------------------
nixConfig = {
# This sets the flake to use the IOG nix cache.
# Nix should ask for permission before using it,
# but remove it here if you do not want it to.
extra-substituters = ["https://cache.iog.io"];
extra-trusted-public-keys = ["hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ="];
allow-import-from-derivation = "true";
};
}

0 comments on commit f6bd524

Please sign in to comment.