diff --git a/oscar/configuration.nix b/oscar/configuration.nix index 84b712a..ae54b4e 100644 --- a/oscar/configuration.nix +++ b/oscar/configuration.nix @@ -102,7 +102,6 @@ home.packages = with pkgs; [ firefox kate - git prismlauncher libreoffice-qt @@ -119,6 +118,37 @@ ]; }; + programs.git = { + enable = true; + userEmail = "chandler@chandlerswift.com"; + userName = "Chandler Swift"; + lfs.enable = true; + # TODO: delta or diff-so-fancy or difftastic + extraConfig = { + init.defaultBranch = "main"; + pull.ff = "only"; + #init.templatedir = "~/.git-template"; # unsure what this was intended to do -- default hooks, maybe? + #TODO: smtp gives some error. Why? Also, do I need a password? + # smtpserver = "smtp.migadu.com"; + # smtpuser = "chandler@chandlerswift.com"; + # smtpencryption = "tls"; + # smtpserverport = 587; + url."https://aur.archlinux.org/".insteadOf = "aur:"; + url."ssh://aur@aur.archlinux.org/".pushInsteadOf = "aur:"; + url."ssh://git@github.com/ChandlerSwift/".insteadOf = "gh:"; + push.autoSetupRemote = true; + }; + ignores = [ + "*.kate-swp" + "*.swp" + "*~" + "\\#*\\#" + "venv" + ]; + signing.signByDefault = true; + signing.key = null; # "let GnuPG decide what signing key to use depending on commit's author" + }; + home.stateVersion = "23.11"; };