2022-03-10 21:30:54 +02:00
|
|
|
{ pkgs, lib, config, inputs, tools, ... }:
|
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
|
|
|
|
2021-10-16 15:38:51 +03:00
|
|
|
trustedUsers = [ "root" "@wheel" "@admins" ];
|
|
|
|
|
2021-06-05 23:59:06 +03:00
|
|
|
extraOptions = fixPriority ''
|
2021-11-24 00:46:17 +02:00
|
|
|
experimental-features = nix-command flakes
|
2021-06-05 23:59:06 +03:00
|
|
|
builders-use-substitutes = true
|
2022-03-10 21:30:54 +02:00
|
|
|
flake-registry = https://git.${tools.meta.domain}/private-void/registry/-/raw/master/registry.json
|
2021-06-05 23:59:06 +03:00
|
|
|
'';
|
|
|
|
|
2022-03-10 21:31:22 +02:00
|
|
|
binaryCaches = [ "https://cache.${tools.meta.domain}" ];
|
2021-06-05 23:59:06 +03:00
|
|
|
binaryCachePublicKeys = [ "cache.privatevoid.net:SErQ8bvNWANeAvtsOESUwVYr2VJynfuc9JRwlzTTkVg=" ];
|
|
|
|
|
|
|
|
gc = {
|
|
|
|
automatic = true;
|
|
|
|
dates = "weekly";
|
|
|
|
options = "--delete-older-than 30d";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|