config/systems/laptop/nix.nix

20 lines
518 B
Nix
Raw Permalink Normal View History

{ pkgs, lib, inputs, ... }:
2024-09-15 12:56:25 +01:00
{
nix = {
package = lib.mkForce inputs.lix-module.packages.${pkgs.stdenv.hostPlatform.system}.default;
2024-09-15 12:56:25 +01:00
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;
}