tvl-depot/users/wpcarro/common.nix
William Carroll d21bc0afc3 refactor(wpcarro/nixos): Define common.programs mixin
DRYing-up more configuration.

Change-Id: I390cedd6a325ac17ef06c0887d3e0ac2b387b85b
Reviewed-on: https://cl.tvl.fyi/c/depot/+/4601
Reviewed-by: wpcarro <wpcarro@gmail.com>
Autosubmit: wpcarro <wpcarro@gmail.com>
Tested-by: BuildkiteCI
2021-12-25 16:07:54 +00:00

56 lines
822 B
Nix

{ pkgs, ... }:
{
programs = {
fish.enable = true;
ssh = {
startAgent = true;
extraConfig = ''
AddKeysToAgent yes
'';
};
git = {
enable = true;
config = {
user.name = "William Carroll";
user.email = "wpcarro@gmail.com";
};
};
};
services = {
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
jq
mkpasswd
nmap
python3
ripgrep
tldr
tokei
tree
vim
xclip
];
}