29 lines
758 B
Nix
29 lines
758 B
Nix
{ pkgs, lib, config, inputs, ... }:
|
|
let
|
|
fixPriority = x: if config.services.hydra.enable
|
|
then lib.mkForce x
|
|
else x;
|
|
in {
|
|
nix = {
|
|
package = inputs.nix-super.defaultPackage.${pkgs.system};
|
|
|
|
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";
|
|
};
|
|
};
|
|
}
|