1
mirror of https://github.com/wlcx/home.git synced 2026-03-10 16:03:12 +00:00
home/home/macs.nix

22 lines
626 B
Nix

{
pkgs,
lib,
...
}:
{
# Mac specific packages.
# TODO: have this in a central packages place rather than here
home.packages = with pkgs; [
pngpaste
mypkgs.qrclip
];
# Use secretive for SSH agent
programs.ssh.matchBlocks.all = lib.mkIf pkgs.stdenv.isDarwin {
host = "*";
extraOptions."IdentityAgent" =
"~/Library/Containers/com.maxgoedjen.Secretive.SecretAgent/Data/socket.ssh";
};
programs.zsh.sessionVariables.SSH_AUTH_SOCK = "$HOME/Library/Containers/com.maxgoedjen.Secretive.SecretAgent/Data/socket.ssh";
programs.zsh.initContent = "eval $(/opt/homebrew/bin/brew shellenv)";
}