configuration.nix/home/dev.nix
2023-03-25 22:10:09 +05:30

40 lines
766 B
Nix

{pkgs, ...}: let
user = import ../users/user.nix;
in {
imports = [
./nvim.nix
];
home.packages = with pkgs; [
git-crypt
lazydocker
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";
push.autoSetupRemote = true;
};
ignores = ["/.nix" "/.direnv"];
};
lazygit = {
enable = true;
};
};
}