feat(nix/prog): enable git
This commit is contained in:
parent
63c310ef14
commit
2db30c13e7
2 changed files with 22 additions and 4 deletions
15
nix/home.nix
15
nix/home.nix
|
@ -6,8 +6,8 @@ in
|
||||||
{
|
{
|
||||||
# Home Manager needs a bit of information about you and the
|
# Home Manager needs a bit of information about you and the
|
||||||
# paths it should manage.
|
# paths it should manage.
|
||||||
home.username = secrets.username;
|
home.username = secrets.home.name;
|
||||||
home.homeDirectory = secrets.homeDir;
|
home.homeDirectory = secrets.home.dir;
|
||||||
|
|
||||||
# This value determines the Home Manager release that your
|
# This value determines the Home Manager release that your
|
||||||
# configuration is compatible with. This helps avoid breakage
|
# configuration is compatible with. This helps avoid breakage
|
||||||
|
@ -22,6 +22,17 @@ in
|
||||||
# Let Home Manager install and manage itself.
|
# Let Home Manager install and manage itself.
|
||||||
programs.home-manager.enable = true;
|
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 = {
|
programs.exa = {
|
||||||
enable = true;
|
enable = true;
|
||||||
# TODO: install zsh and activate aliases
|
# TODO: install zsh and activate aliases
|
||||||
|
|
|
@ -1,4 +1,11 @@
|
||||||
{
|
{
|
||||||
username = "Bob";
|
home = {
|
||||||
homeDir = "/home/bob";
|
name = "Bob";
|
||||||
|
dir = "/home/bob";
|
||||||
|
};
|
||||||
|
|
||||||
|
git = {
|
||||||
|
name = "Bob Ross";
|
||||||
|
email = "bross@example.com";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue