configuration.nix/home/dev.nix

44 lines
788 B
Nix
Raw Normal View History

2023-03-15 22:11:59 +05:30
{ pkgs, ... }:
let
user = import ../users/user.nix;
in
{
imports = [
./nvim.nix
];
home.packages = with pkgs; [
git-crypt
lazydocker
nixpkgs-fmt
ripgrep
];
programs = {
gh = {
enable = true;
settings.git_protocol = "ssh";
extensions = [ pkgs.gh-dash ];
};
git = {
enable = true;
diff-so-fancy = {
enable = true;
};
userEmail = user.primary.emailAddress;
userName = user.primary.realName;
signing = {
key = user.primary.signingKey;
signByDefault = true;
};
extraConfig = {
init.defaultBranch = "main";
2023-03-22 23:29:23 +05:30
push.autoSetupRemote = true;
2023-03-15 22:11:59 +05:30
};
ignores = [ "/.nix" "/.direnv" ];
};
lazygit = {
enable = true;
};
};
}