2022-03-10 21:30:54 +02:00
|
|
|
{ pkgs, lib, config, inputs, tools, ... }:
|
2022-12-17 21:31:19 +02:00
|
|
|
|
|
|
|
{
|
2021-06-05 23:59:06 +03:00
|
|
|
nix = {
|
2022-06-18 01:51:44 +03:00
|
|
|
package = inputs.nix-super.packages.${pkgs.system}.default;
|
2021-06-05 23:59:06 +03:00
|
|
|
|
2022-12-17 21:31:19 +02:00
|
|
|
settings = {
|
|
|
|
trusted-users = [ "root" "@wheel" "@admins" ];
|
|
|
|
binary-caches = [ "https://cache.${tools.meta.domain}" ];
|
|
|
|
trusted-public-keys = [ "cache.privatevoid.net:SErQ8bvNWANeAvtsOESUwVYr2VJynfuc9JRwlzTTkVg=" ];
|
|
|
|
};
|
2021-10-16 15:38:51 +03:00
|
|
|
|
2022-12-17 21:31:19 +02:00
|
|
|
extraOptions = ''
|
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
|
2022-05-27 16:36:28 +03:00
|
|
|
|
|
|
|
# For Hercules CI agent
|
|
|
|
narinfo-cache-negative-ttl = 0
|
2021-06-05 23:59:06 +03:00
|
|
|
'';
|
|
|
|
|
|
|
|
gc = {
|
|
|
|
automatic = true;
|
|
|
|
dates = "weekly";
|
2022-05-29 15:43:38 +03:00
|
|
|
options = "--delete-older-than 7d";
|
2021-06-05 23:59:06 +03:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|