aboutsummaryrefslogtreecommitdiffstats
path: root/modules/darwin/default.nix
blob: 5b487ef4486daf4d6e13b430215b1f1b39aed39a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{ pkgs, ... }:

{
  imports = [
    ./homebrew.nix
    ./macos.nix
  ];

  # Nix is managed by Determinate installer
  nix.enable = false;

  # Allow unfree packages
  nixpkgs.config.allowUnfree = true;

  # System state version – do not change after first installation
  system.stateVersion = 5;

  # Primary user for system defaults and homebrew
  system.primaryUser = "cobraz";

  # Enable Touch ID for sudo
  security.pam.services.sudo_local.touchIdAuth = true;

  # Remap Caps Lock to Escape
  system.keyboard = {
    enableKeyMapping = true;
    remapCapsLockToEscape = true;
  };

  # Core system packages available to all users
  environment.systemPackages = with pkgs; [
    curl
    git
    wget
  ];
}