aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDemonKingSwarn <rockingswarn@gmail.com>2026-04-20 12:13:55 +0530
committerDemonKingSwarn <rockingswarn@gmail.com>2026-04-20 12:13:55 +0530
commit37a9ac7ddc3c24de5736f96c772a35a4adb48ec3 (patch)
tree7498dba46e9c9b1b43b086525f30fb3303925d09
parent36ac9f9a50f164f5f031e44fc2206e13249c00a6 (diff)
downloadodysseus-37a9ac7ddc3c24de5736f96c772a35a4adb48ec3.zip
odysseus-37a9ac7ddc3c24de5736f96c772a35a4adb48ec3.tar.gz
git config added
-rw-r--r--config/git.nix80
-rw-r--r--home.nix14
2 files changed, 81 insertions, 13 deletions
diff --git a/config/git.nix b/config/git.nix
new file mode 100644
index 0000000..4b75f9c
--- /dev/null
+++ b/config/git.nix
@@ -0,0 +1,80 @@
+{ ... }:
+{
+ xdg.enable = true;
+
+ programs.git = {
+ enable = true;
+
+ settings = {
+ user = {
+ name = "DemonKingSwarn";
+ email = "rockingswarn@gmail.com";
+ };
+
+ init = {
+ defaultBranch = "master";
+ };
+
+ core = {
+ compression = 4;
+ whitespace = "error";
+ preloadIndex = true;
+ };
+
+ advice = {
+ addEmptyPathspec = false;
+ pushNonFastForward = false;
+ statusHints = false;
+ };
+
+ status = {
+ branch = true;
+ showStash = true;
+ showUntrackedFiles = "all";
+ };
+
+ diff = {
+ context = 3;
+ renames = "copies";
+ interHunkContext = 10;
+ };
+
+ push = {
+ autoSetupRemote = true;
+ default = "current";
+ followTags = true;
+ };
+
+ pull = {
+ rebase = true;
+ };
+
+ rebase = {
+ autoStash = true;
+ missingCommitsCheck = "warn";
+ };
+
+ http = {
+ sslVerify = false;
+ version = "HTTP/1.1";
+ };
+
+ gpg.format = "ssh";
+
+ url = {
+ "git@github.com:demonkingswarn/" = {
+ insteadOf = "dks:/";
+ };
+ "git@github.com:" = {
+ insteadOf = "gh:";
+ };
+ };
+
+ credential = {
+ "https://github.com".helper = [ "" "!/usr/bin/gh auth git-credential" ];
+ "https://gist.github.com".helper = [ "" "!/usr/bin/gh auth git-credential" ];
+ };
+
+ };
+ };
+}
diff --git a/home.nix b/home.nix
index 6721f30..e9388c2 100644
--- a/home.nix
+++ b/home.nix
@@ -2,6 +2,7 @@
{
imports = [
+ ./config/git.nix
./config/zsh.nix
./config/ghostty.nix
];
@@ -15,19 +16,6 @@
inputs.hypr-wellbeing.packages.${pkgs.system}.default
];
- home.file = {
- # # Building this configuration will create a copy of 'dotfiles/screenrc' in
- # # the Nix store. Activating the configuration will then make '~/.screenrc' a
- # # symlink to the Nix store copy.
- # ".screenrc".source = dotfiles/screenrc;
-
- # # You can also set the file content immediately.
- # ".gradle/gradle.properties".text = ''
- # org.gradle.console=verbose
- # org.gradle.daemon.idletimeout=3600000
- # '';
- };
-
home = {
sessionPath = [
"${config.home.homeDirectory}/.local/bin"