tvl-depot/users/wpcarro/common.nix
William Carroll 3414016ee0 feat(wpcarro/nix): Enable gpg agent
Also include `gpg` and `pass` in my commonly used CLI tools.

Change-Id: I4df71519e585286a0ab38da6161fbe383695a35f
Reviewed-on: https://cl.tvl.fyi/c/depot/+/5451
Reviewed-by: wpcarro <wpcarro@gmail.com>
Autosubmit: wpcarro <wpcarro@gmail.com>
Tested-by: BuildkiteCI
2022-04-16 01:14:53 +00:00

69 lines
1 KiB
Nix

{ depot, pkgs, ... }:
let
inherit (depot.users) wpcarro;
in
{
programs = {
fish.enable = true;
gnupg.agent.enable = true;
ssh = {
startAgent = true;
extraConfig = ''
AddKeysToAgent yes
'';
};
git = {
enable = true;
config = {
user.name = "William Carroll";
user.email = "wpcarro@gmail.com";
};
};
};
services = {
locate.enable = true;
depot.automatic-gc = {
enable = true;
interval = "1 hour";
diskThreshold = 16; # GiB
maxFreed = 10; # GiB
preserveGenerations = "14d";
};
};
# Command-line tools I commonly used and want available on most (or all) of my
# machines.
shell-utils = with pkgs; [
bat
dig
direnv
diskus
emacs
exa
fd
fzf
git
gnupg
jq
mkpasswd
nmap
pass
python3
rink
ripgrep
tldr
tokei
tree
vim
whois
# TODO(wpcarro): Debug this failing build.
# wpcarro.tools.simple_vim
xclip
];
}