feat(nix/prog): enable git

This commit is contained in:
Dmitriy Pleshevskiy 2022-04-05 11:26:26 +03:00
parent 63c310ef14
commit 2db30c13e7
2 changed files with 22 additions and 4 deletions

View file

@ -6,8 +6,8 @@ in
{
# Home Manager needs a bit of information about you and the
# paths it should manage.
home.username = secrets.username;
home.homeDirectory = secrets.homeDir;
home.username = secrets.home.name;
home.homeDirectory = secrets.home.dir;
# This value determines the Home Manager release that your
# configuration is compatible with. This helps avoid breakage
@ -22,6 +22,17 @@ in
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;
programs.git = {
enable = true;
userName = secrets.git.name;
userEmail = secrets.git.email;
extraConfig = {
core.editor = "nvim";
init.defaultBranch = "main";
pull.rebase = true;
};
};
programs.exa = {
enable = true;
# TODO: install zsh and activate aliases

View file

@ -1,4 +1,11 @@
{
username = "Bob";
homeDir = "/home/bob";
home = {
name = "Bob";
dir = "/home/bob";
};
git = {
name = "Bob Ross";
email = "bross@example.com";
};
}