2021-07-16 23:54:02 +03:00
|
|
|
{ lib, ... }:
|
|
|
|
let
|
|
|
|
|
|
|
|
experimental-features = [
|
|
|
|
"flakes"
|
|
|
|
"nix-command"
|
|
|
|
];
|
|
|
|
substituters = [
|
|
|
|
"https://nrdxp.cachix.org" # quality of life cache from our CI
|
|
|
|
"https://nix-community.cachix.org"
|
|
|
|
];
|
|
|
|
trusted-public-keys = [
|
|
|
|
"nrdxp.cachix.org-1:Fc5PSqY2Jm1TrWfm88l6cvGWwz3s93c6IOifQWnhNW4="
|
|
|
|
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
|
|
|
];
|
|
|
|
|
|
|
|
in
|
|
|
|
{
|
|
|
|
# package and option is from fup
|
|
|
|
nix.generateRegistryFromInputs = lib.mkDefault true;
|
|
|
|
|
2021-07-20 22:28:46 +03:00
|
|
|
# missing merge semantics in this option force us to use extra-* for now
|
2021-07-16 23:54:02 +03:00
|
|
|
nix.extraOptions = ''
|
2021-07-20 22:28:46 +03:00
|
|
|
extra-experimental-features = ${lib.concatStringsSep " " experimental-features }
|
|
|
|
extra-substituters = ${lib.concatStringsSep " " substituters }
|
|
|
|
extra-trusted-public-keys = ${lib.concatStringsSep " " trusted-public-keys }
|
2021-07-16 23:54:02 +03:00
|
|
|
'';
|
|
|
|
}
|