aboutsummaryrefslogtreecommitdiff
path: root/home/profiles/darwin.nix
blob: d8942c8acbd27c5549cc90a64bf05e878f82365e (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
{ pkgs, config, ... }:
{
  imports = [
    ../programs/aider.nix
    ../programs/bat.nix
    ../programs/bottom.nix
    ../programs/emacs
    ../programs/eza.nix
    ../programs/fd.nix
    ../programs/firefox
    ../programs/fish.nix
    ../programs/kitty.nix
    ../programs/ssh.nix
  ];

  home.packages = with pkgs; [
    delve
    dive # explore layers in docker images
    docker
    docker-credential-helpers
    nil # nix lsp
    nix-direnv # integration with direnv
    nixfmt-rfc-style # new formatter
    shellcheck
    tree
    wget
    wireshark
    openssh # the version of ssh shipped on MacOS does not support yubikey
    yubikey-manager
  ];

  programs.fish.shellAliases = {
    grep = "${pkgs.ripgrep}/bin/rg";
    ps = "${pkgs.procs}/bin/procs";
  };

  programs.fish.shellInit = ''
    export ANTHROPIC_API_KEY="$(cat /run/agenix/anthropic-api-key)"
  '';

  home.sessionPath = [
    "${config.home.homeDirectory}/.local/bin"
  ];

  xdg.enable = true;
}