21 lines
453 B
Nix
21 lines
453 B
Nix
|
|
{ pkgs, lib, ... }:
|
|
|
|
{
|
|
nix = {
|
|
package = pkgs.nixVersions.latest;
|
|
settings = {
|
|
experimental-features = [ "nix-command" "flakes" ];
|
|
auto-optimise-store = true;
|
|
};
|
|
gc = {
|
|
automatic = true;
|
|
options = "--delete-older-than 7d";
|
|
};
|
|
extraOptions = lib.optionalString (pkgs.system == "aarch64-darwin") ''
|
|
extra-platforms = x86_64-darwin aarch64-darwin
|
|
'';
|
|
};
|
|
services.nix-daemon.enable = true;
|
|
}
|