seperate out nix settings

This commit is contained in:
Osman Faruk Bayram 2024-10-26 18:16:39 +03:00
parent 309d4730e8
commit b7a4ae6a18
2 changed files with 19 additions and 15 deletions

18
common/nix-settings.nix Normal file
View file

@ -0,0 +1,18 @@
{ 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";
};
# disable the database error TODO add nix-index search
programs.command-not-found.enable = false;
}