mirror of
https://github.com/gburd/nix-config.git
synced 2024-11-14 00:26:24 +00:00
f3fd89af54
Many thangs to the hard work and generous availability of: git@github.com:Misterio77/nix-config.git
33 lines
992 B
Nix
33 lines
992 B
Nix
{ inputs, lib, ... }:
|
|
{
|
|
nix = {
|
|
settings = {
|
|
substituters = [
|
|
"https://cache.m7.rs"
|
|
];
|
|
trusted-public-keys = [
|
|
"cache.m7.rs:kszZ/NSwE/TjhOcPPQ16IuUiuRSisdiIwhKZCxguaWg="
|
|
];
|
|
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}" ];
|
|
};
|
|
}
|