summaryrefslogtreecommitdiff
path: root/modules/darwin/common/nix.nix
blob: 63b0d90f84b764d94d7eeb1a6a355c24d72b4211 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{ lib, this, ... }:
with lib;
{
  nix = {
    daemonIOLowPriority = false;
    daemonProcessType = "Standard";

    settings.extra-platforms = optionalString (this.system == "aarch64-darwin") ''
      x86_64-darwin aarch64-darwin
    '';
  };

  services.nix-daemon.enable = true;

  # https://github.com/LnL7/nix-darwin/blob/master/CHANGELOG
  system.stateVersion = 4;
}