2021-08-23 20:27:12 +03:00
|
|
|
{ pkgs, lib, config, inputs, ... }:
|
2021-06-05 23:59:06 +03:00
|
|
|
let
|
|
|
|
fixPriority = x: if config.services.hydra.enable
|
|
|
|
then lib.mkForce x
|
|
|
|
else x;
|
|
|
|
in {
|
|
|
|
nix = {
|
2021-08-23 20:27:12 +03:00
|
|
|
package = inputs.nix-super.defaultPackage.${pkgs.system};
|
2021-06-05 23:59:06 +03:00
|
|
|
|
|
|
|
extraOptions = fixPriority ''
|
|
|
|
experimental-features = nix-command flakes ca-references
|
|
|
|
builders-use-substitutes = true
|
|
|
|
flake-registry = ${
|
|
|
|
pkgs.writeText "null-registry.json" ''{"flakes":[],"version":2}''
|
|
|
|
}
|
|
|
|
'';
|
|
|
|
|
|
|
|
binaryCaches = [ "https://cache.privatevoid.net" ];
|
|
|
|
binaryCachePublicKeys = [ "cache.privatevoid.net:SErQ8bvNWANeAvtsOESUwVYr2VJynfuc9JRwlzTTkVg=" ];
|
|
|
|
|
|
|
|
autoOptimiseStore = true;
|
|
|
|
|
|
|
|
gc = {
|
|
|
|
automatic = true;
|
|
|
|
dates = "weekly";
|
|
|
|
options = "--delete-older-than 30d";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|