Files
nixos/modules/nix-conf.nix
T

63 lines
1.9 KiB
Nix
Raw Normal View History

2025-03-20 10:45:16 -05:00
{
pkgs,
lib,
2025-03-20 14:19:38 -05:00
cache,
2025-03-20 10:45:16 -05:00
...
}:
2025-02-04 07:44:54 -06:00
{
nix = {
gc = {
automatic = true;
# Scheduling of them is different in nixos vs nix-darwin, so check for
# the extra details there
options = "--delete-older-than 30d";
};
package = pkgs.nixStable;
settings = {
2025-03-23 00:28:35 -05:00
cores = 0; # Use all cores for builds
download-buffer-size = 500 * 1024 * 1024;
2025-02-04 07:44:54 -06:00
experimental-features = "nix-command flakes";
keep-outputs = true;
keep-derivations = true;
min-free = (toString (1024 * 1024 * 1024));
max-free = (toString (5 * 1024 * 1024 * 1024));
trusted-users = [
"greg"
"gregory.hellings"
]; # For home and for work machines
2025-03-20 10:45:16 -05:00
substituters =
(lib.optionals cache [
"http://nas.thehellings.lan:9000/binary-cache/"
"http://nas.home:9000/binary-cache/"
])
++ [
"https://cache.garnix.io"
"https://ai.cachix.org"
"https://nixpkgs-python.cachix.org"
"https://greg-hellings.cachix.org"
"https://nix-community.cachix.org"
"https://cache.nixos.org"
];
2025-02-04 07:44:54 -06:00
trusted-public-keys = [
2025-03-20 10:45:16 -05:00
"nix.thehellings.lan:0qWYHn3gGllXChhAaaxKlNZtRy6yG/XJs1RFSqV3nW8="
2025-02-04 07:44:54 -06:00
"nix.home:0qWYHn3gGllXChhAaaxKlNZtRy6yG/XJs1RFSqV3nW8="
"cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g="
"ai.cachix.org-1:N9dzRK+alWwoKXQlnn0H6aUx0lU/mspIoz8hMvGvbbc="
"nixpkgs-python.cachix.org-1:hxjI7pFxTyuTHn2NkvWCrAUcNZLNS3ZAvfYNuYifcEU="
"greg-hellings.cachix.org-1:y01Jl/L5evlhxdnUW6n56AiI1k8g1wxWhTxJCe7XSco="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
2025-03-20 10:45:16 -05:00
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
2025-02-04 07:44:54 -06:00
];
};
};
nixpkgs.config = {
allowUnfree = true;
2025-03-20 10:45:16 -05:00
allowUnfreePredicate = _: true;
2025-02-04 07:44:54 -06:00
permittedInsecurePackages = [ "jitsi-meet-1.0.8043" ];
};
}