2023-09-15 14:53:38 +00:00
|
|
|
{ inputs, lib, ... }:
|
|
|
|
{
|
|
|
|
nix = {
|
|
|
|
settings = {
|
2023-09-19 17:05:08 +00:00
|
|
|
# substituters = [
|
|
|
|
# "https://cache.burd.me"
|
|
|
|
# ];
|
|
|
|
# trusted-public-keys = [
|
|
|
|
# "cache.burd.me:kszZ/NSwE/TjhOcPPQ16IuUiuRSisdiIwhKZCxguaWg="
|
|
|
|
# ];
|
2023-09-15 14:53:38 +00:00
|
|
|
trusted-users = [ "root" "@wheel" ];
|
|
|
|
auto-optimise-store = lib.mkDefault true;
|
|
|
|
experimental-features = [ "nix-command" "flakes" "repl-flake" ];
|
|
|
|
warn-dirty = false;
|
|
|
|
system-features = [ "kvm" "big-parallel" "nixos-test" ];
|
|
|
|
flake-registry = ""; # Disable global flake registry
|
|
|
|
};
|
|
|
|
gc = {
|
|
|
|
automatic = true;
|
|
|
|
dates = "weekly";
|
|
|
|
# Keep the last 3 generations
|
|
|
|
options = "--delete-older-than +3";
|
|
|
|
};
|
|
|
|
|
|
|
|
# Add each flake input as a registry
|
|
|
|
# To make nix3 commands consistent with the flake
|
|
|
|
registry = lib.mapAttrs (_: value: { flake = value; }) inputs;
|
|
|
|
|
|
|
|
# Add nixpkgs input to NIX_PATH
|
|
|
|
# This lets nix2 commands still use <nixpkgs>
|
|
|
|
nixPath = [ "nixpkgs=${inputs.nixpkgs.outPath}" ];
|
|
|
|
};
|
|
|
|
}
|