Configure nix-core module

This commit is contained in:
Tobias Ostner 2023-12-09 12:08:06 +01:00
parent 71fd7ff1d6
commit 50e4e444b8
2 changed files with 10 additions and 6 deletions

View file

@ -1,6 +1,15 @@
{ pkgs, ... }:
{ 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;
};
}