mirror of
https://github.com/srid/nixos-config.git
synced 2026-01-11 09:17:54 +08:00
make git a normal module
This commit is contained in:
parent
19313e9ee8
commit
8a9041b9bf
3 changed files with 5 additions and 12 deletions
|
|
@ -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";
|
||||
|
|
|
|||
|
|
@ -35,9 +35,7 @@
|
|||
imports = [
|
||||
self.homeModules.common-darwin
|
||||
../home/shellcommon.nix
|
||||
(import ../home/git.nix {
|
||||
user = config.people.myself;
|
||||
})
|
||||
../home/git.nix
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue