configuration.nix/home/dev.nix

42 lines
774 B
Nix

{ pkgs, ... }:
let
user = import ../users/user.nix;
in
{
imports = [
./nixvim.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;
};
};
}