2022-01-06 23:07:34 +01:00
|
|
|
{ depot, pkgs, ... }:
|
2021-12-25 00:44:36 +01:00
|
|
|
|
2022-01-06 23:07:34 +01:00
|
|
|
let
|
|
|
|
inherit (depot.users) wpcarro;
|
2022-01-30 17:06:58 +01:00
|
|
|
in
|
|
|
|
{
|
2021-12-25 03:12:15 +01:00
|
|
|
programs = {
|
|
|
|
fish.enable = true;
|
|
|
|
|
2022-04-15 19:31:01 +02:00
|
|
|
gnupg.agent.enable = true;
|
|
|
|
|
2021-12-25 03:12:15 +01:00
|
|
|
ssh = {
|
|
|
|
startAgent = true;
|
|
|
|
extraConfig = ''
|
|
|
|
AddKeysToAgent yes
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
git = {
|
|
|
|
enable = true;
|
|
|
|
config = {
|
|
|
|
user.name = "William Carroll";
|
|
|
|
user.email = "wpcarro@gmail.com";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-12-25 03:11:24 +01:00
|
|
|
services = {
|
2022-08-01 23:10:43 +02:00
|
|
|
# Remodel the system clipboard as a list instead of a point.
|
|
|
|
clipmenu.enable = true;
|
|
|
|
|
2021-12-25 03:16:24 +01:00
|
|
|
locate.enable = true;
|
|
|
|
|
2021-12-25 03:11:24 +01:00
|
|
|
depot.automatic-gc = {
|
|
|
|
enable = true;
|
|
|
|
interval = "1 hour";
|
|
|
|
diskThreshold = 16; # GiB
|
|
|
|
maxFreed = 10; # GiB
|
|
|
|
preserveGenerations = "14d";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-12-25 00:44:36 +01:00
|
|
|
# Command-line tools I commonly used and want available on most (or all) of my
|
|
|
|
# machines.
|
|
|
|
shell-utils = with pkgs; [
|
2022-12-12 20:41:54 +01:00
|
|
|
age
|
2021-12-25 00:44:36 +01:00
|
|
|
bat
|
2022-11-19 19:20:12 +01:00
|
|
|
coreutils
|
2021-12-25 00:44:36 +01:00
|
|
|
direnv
|
|
|
|
diskus
|
|
|
|
emacs
|
|
|
|
fd
|
|
|
|
fzf
|
|
|
|
git
|
2022-04-15 19:31:01 +02:00
|
|
|
gnupg
|
2022-05-09 19:41:56 +02:00
|
|
|
htop
|
2021-12-25 00:44:36 +01:00
|
|
|
jq
|
|
|
|
nmap
|
2022-12-12 20:41:54 +01:00
|
|
|
passage
|
2021-12-25 00:44:36 +01:00
|
|
|
python3
|
2022-02-08 20:12:34 +01:00
|
|
|
rink
|
2021-12-25 00:44:36 +01:00
|
|
|
ripgrep
|
|
|
|
tldr
|
|
|
|
tokei
|
|
|
|
tree
|
|
|
|
vim
|
2021-12-30 15:22:12 +01:00
|
|
|
whois
|
2022-01-25 20:49:30 +01:00
|
|
|
# TODO(wpcarro): Debug this failing build.
|
|
|
|
# wpcarro.tools.simple_vim
|
2021-12-25 00:44:36 +01:00
|
|
|
xclip
|
2022-05-09 19:41:56 +02:00
|
|
|
zip
|
2022-11-19 19:20:12 +01:00
|
|
|
] ++
|
|
|
|
(if pkgs.stdenv.isLinux then [
|
|
|
|
mkpasswd
|
|
|
|
sysz
|
|
|
|
# This depends on compiler-rt-libc-10.0.1, which is marked as broken on
|
|
|
|
# aarch64-darwin, but depot sets `allowBroken = true`, which means any
|
|
|
|
# build that depends on dig will fail on OSX (e.g. emacs).
|
|
|
|
# https://cs.tvl.fyi/github.com/NixOS/nixpkgs@e9b195248c6cd7961a453b10294aea9ab58e01b4/-/blob/pkgs/development/compilers/llvm/10/compiler-rt/default.nix?L122
|
|
|
|
dig
|
|
|
|
] else [ ]);
|
2021-12-25 00:44:36 +01:00
|
|
|
}
|