2024-07-10 15:17:18 +00:00
|
|
|
{ lib, pkgs, ... }:
|
|
|
|
{
|
|
|
|
nix.extraOptions = ''
|
|
|
|
experimental-features = nix-command flakes
|
|
|
|
'';
|
|
|
|
|
|
|
|
# Provision a useful nixpkgs in NIX_PATH and flake registry on infra
|
|
|
|
# machines.
|
|
|
|
nixpkgs.flake = {
|
|
|
|
source = lib.cleanSource pkgs.path;
|
|
|
|
setNixPath = true;
|
|
|
|
setFlakeRegistry = true;
|
|
|
|
};
|
2024-07-10 16:17:30 +00:00
|
|
|
|
|
|
|
# Use our cache and trust its signing key. Still use cache.nixos.org as
|
|
|
|
# fallback.
|
2024-08-06 11:26:15 +00:00
|
|
|
nix.settings.substituters = [ "https://cache.forkos.org/" ];
|
2024-07-10 16:17:30 +00:00
|
|
|
nix.settings.trusted-public-keys = [
|
|
|
|
"cache.forkos.org:xfXIUJO1yiEITJmYsVmNDa9BFSlgTh/YqZ+4ei1EhQg="
|
|
|
|
];
|
2024-07-10 15:17:18 +00:00
|
|
|
}
|