about summary refs log tree commit diff
path: root/modules/darwin/common/nix.nix
blob: a522cb0e9ff9c4a82e9c601b203c099d84f2c7d2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{
  lib,
  this,
  ...
}:
with lib; {
  nix = {
    daemonIOLowPriority = false;
    daemonProcessType = "Standard";

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

    settings.trusted-users = ["@admin"];
  };

  services.nix-daemon.enable = true;

  system.stateVersion = 4;
}

Consider giving Nix/NixOS a try! <3