about summary refs log tree commit diff
path: root/modules/darwin/common/nix.nix
blob: 10aeb0312c1416d084fc50aa85a6218b79a8256a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{
  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;
}

Consider giving Nix/NixOS a try! <3