make git a normal module

This commit is contained in:
Sridhar Ratnakumar 2022-12-03 14:47:57 -05:00
parent 19313e9ee8
commit 8a9041b9bf
3 changed files with 5 additions and 12 deletions

View file

@ -1,4 +1,3 @@
{ user }:
{ pkgs, config, flake, ... }:
{
home.packages = [ pkgs.git-lfs ];
@ -6,8 +5,8 @@
programs.git = {
package = pkgs.gitAndTools.gitFull;
enable = true;
userName = flake.config.people.users.${user}.name;
userEmail = flake.config.people.users.${user}.email;
userName = flake.config.people.users.${config.home.username}.name;
userEmail = flake.config.people.users.${config.home.username}.email;
aliases = {
co = "checkout";
ci = "commit";

View file

@ -35,9 +35,7 @@
imports = [
self.homeModules.common-darwin
../home/shellcommon.nix
(import ../home/git.nix {
user = config.people.myself;
})
../home/git.nix
];
};
}

View file

@ -26,9 +26,7 @@
home-manager.users."uday" = {
imports = [
self.homeModules.common-linux
(import ../home/git.nix {
user = "uday";
})
../home/git.nix
];
};
}
@ -54,9 +52,7 @@
imports = [
self.homeModules.common-linux
../home/shellcommon.nix
(import ../home/git.nix {
user = config.people.myself;
})
../home/git.nix
];
};
}