configuration.nix/home/dev.nix

43 lines
774 B
Nix
Raw Normal View History

2023-03-29 21:48:55 +05:30
{ pkgs, ... }:
let
2023-03-15 22:11:59 +05:30
user = import ../users/user.nix;
2023-03-29 21:48:55 +05:30
in
{
2023-03-15 22:11:59 +05:30
imports = [
2023-04-01 23:20:13 +05:30
./nixvim.nix
2023-03-15 22:11:59 +05:30
];
home.packages = with pkgs; [
git-crypt
lazydocker
ripgrep
];
programs = {
gh = {
enable = true;
settings.git_protocol = "ssh";
2023-03-29 21:48:55 +05:30
extensions = [ pkgs.gh-dash ];
2023-03-15 22:11:59 +05:30
};
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
};
2023-03-29 21:48:55 +05:30
ignores = [ "/.nix" "/.direnv" ];
2023-03-15 22:11:59 +05:30
};
lazygit = {
enable = true;
};
};
}