flake/common/nix-settings.nix

22 lines
441 B
Nix

{ pkgs, lib, config, ... }: {
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
# enable nix flakes
nix.settings.experimental-features = [ "nix-command" "flakes" ];
nix.gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 30d";
};
nix.nixPath = [ "nixpkgs=${pkgs.path}" ];
# disable the database error TODO add nix-index search
programs.command-not-found.enable = false;
}