dotfiles/.config/nix/modules/nix-core.nix
2023-12-09 12:08:06 +01:00

15 lines
392 B
Nix

{ pkgs, lib, ... }:
{
nix.settings.experimental-features = [ "nix-command" "flakes" ];
nixpkgs.config.allowUnfree = true;
nix.package = pkgs.nix;
services.nix-daemon.enable = true;
programs.nix-index.enable = true;
nix.gc = {
automatic = lib.mkDefault true;
options = lib.mkDefault "--delete-older-than 7d";
};
nix.settings = {
auto-optimise-store = false;
};
}