aboutsummaryrefslogblamecommitdiff
path: root/home/profiles/darwin.nix
blob: c0e9a8ebb2097660b0d1353d89d68a077c12464e (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
                      



                                                                    





                                                               


             

                         
                          
                     

                       
                       

                         
                       

    











                                          
                                                                          
                   






                                    



                                                                                  



                                             

                    
{ pkgs, config, ... }:
{
  age = {
    identityPaths = [ "${config.home.homeDirectory}/.ssh/agenix" ];
    secretsDir = "${config.home.homeDirectory}/.local/share/agenix";

    secrets = {
      anthropic-api-key = {
        file = ../../secrets/users/fcuny/anthropic-api-key.age;
      };
    };
  };

  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 ${config.age.secrets.anthropic-api-key.path})"
  '';

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

  xdg.enable = true;
}