NixOnDroid : Add git config.

This commit is contained in:
Dmitry Voronin 2024-03-06 05:35:43 +03:00
parent 2678221e47
commit 8fbeda4648

View file

@ -41,7 +41,7 @@
home-manager.config = {
home.stateVersion = const.droidStateVersion;
home.file = {
".nixos".source = inputs.dotfiles;
".nixos".source = inputs.self;
".bash".source = ./common/bash;
".ssh/config".source = ./common/ssh/Config;
};
@ -57,5 +57,15 @@
enable = true;
extraConfig = builtins.readFile ./common/tmux/tmux.conf;
};
programs.git = {
enable = true;
extraConfig = {
credential.helper = "store";
init.defaultBranch = "main";
pull.rebase = true;
push.autoSetupRemote = true;
rebase.autoStash = true;
};
};
};
}