1
0
dotfiles/shared/home-manager.nix

65 lines
1.3 KiB
Nix

{ config, pkgs, lib, ... }:
let name = "Jip J. Dekker";
user = "dekker1";
email = "jip@dekker.one"; in
{
git = {
enable = true;
aliases = {
co = "checkout";
l = "log --graph --decorate --pretty=oneline --abbrev-commit";
prune = "fetch --prune";
stash-all = "stash save --include-untracked";
s = "status";
};
ignores = [
".DS_Store"
".svn"
"*~"
"*.swp"
"*.rbc"
".idea/"
"__pycache__/"
".vscode"
".clangd/"
"compile_commands.json"
"*.sublime-project"
"*.sublime-workspace"
"build.nosync/"
];
userName = name;
userEmail = email;
lfs.enable = true;
extraConfig = {
init.defaultBranch = "develop";
pull.ff = true;
push.default = "simple";
rebase.autoStash = true;
credential.helper = "osxkeychain";
commit.gpgsign = true;
gpg.format = "ssh";
user.signingkey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMCC0liW47USr/Ic1rJ52V4eE07y42VG9Ols1zYBrPlc";
gpg.ssh.program = "/Applications/1Password.app/Contents/MacOS/op-ssh-sign";
};
};
# Shared shell configuration
nushell = {
enable = true;
};
starship = {
enable = true;
enableNushellIntegration = true;
};
zoxide = {
enable = true;
enableNushellIntegration = true;
};
}