dotfiles/nixos/common/global/nix.nix

22 lines
575 B
Nix
Raw Normal View History

2024-12-20 01:30:06 +00:00
{ inputs, lib, ... }: {
2023-09-25 00:11:38 +00:00
nix = {
settings = {
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 = "";
};
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than +3";
};
registry = lib.mapAttrs (_: value: { flake = value; }) inputs;
nixPath = [ "nixpkgs=${inputs.nixpkgs.outPath}" ];
};
2024-12-20 01:30:06 +00:00
}