41 lines
843 B
Nix
41 lines
843 B
Nix
|
|
{ pkgs, userName, userEmail }: {
|
||
|
|
# enable home-manager
|
||
|
|
programs.home-manager.enable = true;
|
||
|
|
|
||
|
|
# install packages here (that are within nixpkgs ofc)
|
||
|
|
home.packages = with pkgs; [
|
||
|
|
tailscale
|
||
|
|
];
|
||
|
|
|
||
|
|
# this example git configuration is tied to your user, not the system!
|
||
|
|
programs.git = {
|
||
|
|
enable = true;
|
||
|
|
userName = userName;
|
||
|
|
userEmail = userEmail;
|
||
|
|
|
||
|
|
extraConfig = {
|
||
|
|
init.defaultBranch = "master";
|
||
|
|
push.autoSetupRemote = true;
|
||
|
|
pull.rebase = false;
|
||
|
|
merge.tool = "nvimdiff";
|
||
|
|
mergetool.keepBackup = false;
|
||
|
|
};
|
||
|
|
|
||
|
|
ignores = [
|
||
|
|
".DS_Store"
|
||
|
|
".direnv"
|
||
|
|
".idea"
|
||
|
|
];
|
||
|
|
|
||
|
|
aliases = { };
|
||
|
|
};
|
||
|
|
|
||
|
|
# same idea with this example zsh configuration!
|
||
|
|
programs.zsh = {
|
||
|
|
enable = true;
|
||
|
|
autosuggestions.enable = true;
|
||
|
|
enableCompletion = true;
|
||
|
|
shellAliases = { };
|
||
|
|
};
|
||
|
|
}
|