about summary refs log tree commit diff
path: root/hosts/mba/default.nix
blob: be49d4f10dbafd444857a10343714bfe9e19359c (plain) (blame)
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{ pkgs, ... }:
{
  services.nix-daemon.enable = true;

  nix = {
    package = pkgs.nixFlakes;
    settings = {
      experimental-features = [ "nix-command" "flakes" ];
    };
  };

  programs.zsh.enable = true;

  # Required for homebrew on aarch64
  environment.systemPath = [ "/opt/homebrew/bin" "/opt/homebrew/sbin" ];

  homebrew = {
    enable = true;
    onActivation.autoUpdate = true;

    brews = [
      "aspell" # spelling
      "kind" # to run local k8s cluster
    ];

    taps = [
      "homebrew/cask-fonts"
    ];

    casks = [
      "1password-cli"
      "docker"
      "element"
      "emacs"
      "font-monaspace" # https://github.com/githubnext/monaspace
      "font-source-code-pro"
      "iterm2"
      "transmission"
      "vlc"
      "wireshark"
      "zoom"
    ];
  };

  users.users.fcuny.home = "/Users/fcuny";

  system.defaults.dock.autohide = true;
  system.defaults.dock.orientation = "left";
  system.defaults.dock.showhidden = false;
  system.defaults.finder.AppleShowAllExtensions = true;

  home-manager.useGlobalPkgs = true;
  home-manager.useUserPackages = true;
  home-manager.users.fcuny = import ../../home/darwin.nix;
}