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

38 lines
773 B
Nix

{ depot, lib, pkgs, ... }:
{
imports = [ ./common.nix ];
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=
'';
};
home.packages = lib.mkAfter (with pkgs; [
depot.nix.pkgs.copybara
go
gopls
goimports
graphicsmagick-imagemagick-compat
]);
}