diff --git a/home.nix b/home.nix index e17727d..fd9b47d 100644 --- a/home.nix +++ b/home.nix @@ -45,30 +45,7 @@ rec { ]; programs = { - git = { - # package = pkgs.gitAndTools.gitFull; - enable = true; - userName = "Sridhar Ratnakumar"; - userEmail = "srid@srid.ca"; - aliases = { - co = "checkout"; - ci = "commit"; - cia = "commit --amend"; - s = "status"; - st = "status"; - b = "branch"; - p = "pull --rebase"; - pu = "push"; - }; - ignores = [ "*~" "*.swp" ]; - extraConfig = { - init.defaultBranch = "master"; - #core.editor = "nvim"; - #protocol.keybase.allow = "always"; - credential.helper = "store --file ~/.git-credentials"; - pull.rebase = "false"; - }; - }; + git = import ./home/git.nix; tmux = { enable = true; diff --git a/home/git.nix b/home/git.nix new file mode 100644 index 0000000..bdc2985 --- /dev/null +++ b/home/git.nix @@ -0,0 +1,24 @@ +{ + # package = pkgs.gitAndTools.gitFull; + enable = true; + userName = "Sridhar Ratnakumar"; + userEmail = "srid@srid.ca"; + aliases = { + co = "checkout"; + ci = "commit"; + cia = "commit --amend"; + s = "status"; + st = "status"; + b = "branch"; + p = "pull --rebase"; + pu = "push"; + }; + ignores = [ "*~" "*.swp" ]; + extraConfig = { + init.defaultBranch = "master"; + #core.editor = "nvim"; + #protocol.keybase.allow = "always"; + credential.helper = "store --file ~/.git-credentials"; + pull.rebase = "false"; + }; + }; \ No newline at end of file