tvl-depot/users/wpcarro/common.nix
Vincent Ambo e778a33710 chore(3p/sources): bump channels & overlays (2023-10-04)
nixpkgs changed something in how it deals with configuration of the
package set itself when that is externally instantiated (like in
depot)

It seems like we can work around this mostly by just ... deleting some
code, as all instances of this were for allowing unfree code, which
we've already set on the top-level anyways.

* //users/sterni: fix nixpkgs config assertion to point at
  pkgs.config

* //users/wpcarro: disable locate service, which is broken in nixpkgs

Change-Id: Iacf6f1c8fd5b5289e7265e155d74f8269a858ceb
Reviewed-on: https://cl.tvl.fyi/c/depot/+/9541
Reviewed-by: sterni <sternenseemann@systemli.org>
Reviewed-by: wpcarro <wpcarro@gmail.com>
Reviewed-by: grfn <grfn@gws.fyi>
Tested-by: BuildkiteCI
Autosubmit: tazjin <tazjin@tvl.su>
Reviewed-by: tazjin <tazjin@tvl.su>
2023-10-08 20:56:43 +00:00

83 lines
1.6 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 = {
# Remodel the system clipboard as a list instead of a point.
clipmenu.enable = true;
# TODO(wpcarro): broken in nixpkgs as of 2023-10-04
locate.enable = false;
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; [
age
bat
coreutils
direnv
diskus
emacs
fd
fzf
git
gnupg
htop
jq
nmap
passage
python3
rink
ripgrep
tldr
tokei
tree
vim
whois
# TODO(wpcarro): Debug this failing build.
# wpcarro.tools.simple_vim
xclip
zip
] ++
(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 [ ]);
}