nix-config/modules/nix.nix

22 lines
397 B
Nix

{
pkgs,
lib,
...
}: {
# do garbage collection weekly to keep disk usage low
nix = {
settings = {
experimental-features = ["nix-command" "flakes"];
};
gc = {
automatic = lib.mkDefault true;
dates = lib.mkDefault "weekly";
options = lib.mkDefault "--delete-older-than 7d";
};
};
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
}