git config

This commit is contained in:
Benjamin Palko 2024-07-15 21:38:21 -04:00
parent 3caf6e9a67
commit 4f6a0c34d5
2 changed files with 13 additions and 4 deletions

12
home-manager/git.nix Normal file
View file

@ -0,0 +1,12 @@
{ ... }:
{
programs.git = {
enable = true;
userName = "Benjamin Palko";
userEmail = "Benjaminpalko@hotmail.com";
};
programs.gh = {
enable = true;
gitCredentialHelper.enable = true;
};
}

View file

@ -25,10 +25,6 @@ in
users.users.${username} = { users.users.${username} = {
isNormalUser = true; isNormalUser = true;
extraGroups = [ "wheel" ]; # Enable sudo for the user. extraGroups = [ "wheel" ]; # Enable sudo for the user.
packages = with pkgs; [
git
gh
];
}; };
home-manager = { home-manager = {
@ -42,6 +38,7 @@ in
home.username = username; home.username = username;
home.homeDirectory = "/home/${username}"; home.homeDirectory = "/home/${username}";
imports = [ imports = [
../home-manager/git.nix
../home-manager/hyprland.nix ../home-manager/hyprland.nix
../home-manager/media.nix ../home-manager/media.nix
../home-manager/nvim.nix ../home-manager/nvim.nix