configuration.nix/home/dev.nix

41 lines
766 B
Nix
Raw Normal View History

2023-03-25 22:10:09 +05:30
{pkgs, ...}: let
2023-03-15 22:11:59 +05:30
user = import ../users/user.nix;
2023-03-25 22:10:09 +05:30
in {
2023-03-15 22:11:59 +05:30
imports = [
./nvim.nix
];
home.packages = with pkgs; [
git-crypt
lazydocker
ripgrep
];
programs = {
gh = {
enable = true;
settings.git_protocol = "ssh";
2023-03-25 22:10:09 +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-25 22:10:09 +05:30
ignores = ["/.nix" "/.direnv"];
2023-03-15 22:11:59 +05:30
};
lazygit = {
enable = true;
};
};
}