2020-10-25 11:36:16 +00:00
|
|
|
{ depot, lib, pkgs, ... }:
|
|
|
|
{
|
|
|
|
imports = [ ./common.nix ];
|
|
|
|
|
2020-11-21 00:51:24 +00:00
|
|
|
home.sessionVariables.GITHUB_TOKEN = depot.ops.secrets.githubToken;
|
2020-10-25 11:36:16 +00:00
|
|
|
programs.git = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.gitAndTools.gitFull;
|
|
|
|
extraConfig = {
|
|
|
|
user.name = "Luke Granger-Brown";
|
|
|
|
user.email = "git@lukegb.com";
|
|
|
|
pull.ff = "only";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
programs.direnv.enable = true;
|
|
|
|
programs.bash.enableVteIntegration = true;
|
|
|
|
programs.vim = {
|
|
|
|
plugins = (with pkgs.vimPlugins; [
|
|
|
|
vim-go
|
|
|
|
]);
|
|
|
|
extraConfig = ''
|
|
|
|
source $VIMRUNTIME/defaults.vim
|
|
|
|
|
|
|
|
let g:go_def_mode='gopls'
|
|
|
|
let g:go_info_mode='gopls'
|
|
|
|
let g:go_fmt_command='goimports'
|
|
|
|
|
|
|
|
set mouse=
|
|
|
|
'';
|
|
|
|
};
|
2020-11-09 00:21:32 +00:00
|
|
|
programs.ssh.controlMaster = "auto";
|
|
|
|
programs.ssh.controlPersist = "10m";
|
2020-10-25 11:36:16 +00:00
|
|
|
|
2020-11-05 01:57:55 +00:00
|
|
|
programs.bash.initExtra = lib.mkAfter ''
|
|
|
|
ssh-add -q -l >/dev/null || ssh-add -c -q
|
|
|
|
'';
|
|
|
|
|
2020-10-25 11:36:16 +00:00
|
|
|
home.packages = lib.mkAfter (with pkgs; [
|
|
|
|
depot.nix.pkgs.copybara
|
2020-11-17 02:10:23 +00:00
|
|
|
iftop
|
|
|
|
htop
|
|
|
|
iotop
|
2020-10-25 11:36:16 +00:00
|
|
|
go
|
|
|
|
gopls
|
|
|
|
goimports
|
|
|
|
graphicsmagick-imagemagick-compat
|
2020-11-17 02:10:23 +00:00
|
|
|
youtube-dl
|
2020-10-25 11:36:16 +00:00
|
|
|
]);
|
|
|
|
}
|