depot/ops/nixos/lib/home-manager/client.nix

50 lines
1 KiB
Nix
Raw Normal View History

2020-10-25 11:36:16 +00:00
{ depot, lib, pkgs, ... }:
{
imports = [ ./common.nix ];
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
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
iftop
htop
iotop
2020-10-25 11:36:16 +00:00
go
gopls
goimports
graphicsmagick-imagemagick-compat
youtube-dl
2020-10-25 11:36:16 +00:00
]);
}