2023-09-01 07:13:07 +03:00
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
|
2023-09-06 16:10:11 +03:00
|
|
|
let cfg = config.my.git;
|
2023-09-01 07:13:07 +03:00
|
|
|
in {
|
2023-09-06 16:10:11 +03:00
|
|
|
options = { my.git.enable = lib.mkEnableOption "Enable git configuration"; };
|
2023-09-01 07:13:07 +03:00
|
|
|
|
2023-10-03 17:15:14 +03:00
|
|
|
config = lib.mkIf (cfg.enable && config.my.users.ivabus.enable) {
|
2023-09-01 07:13:07 +03:00
|
|
|
home-manager.useGlobalPkgs = true;
|
|
|
|
home-manager.useUserPackages = true;
|
|
|
|
home-manager.users.ivabus = {
|
|
|
|
programs.git = {
|
|
|
|
enable = true;
|
|
|
|
userName = "Ivan Bushchik";
|
|
|
|
userEmail = "ivabus@ivabus.dev";
|
|
|
|
signing.key = "2F16FBF3262E090C";
|
|
|
|
signing.signByDefault = true;
|
|
|
|
package = pkgs.gitAndTools.gitFull;
|
|
|
|
};
|
|
|
|
home.stateVersion = "23.05";
|
|
|
|
};
|
|
|
|
};
|
2023-09-06 16:10:11 +03:00
|
|
|
}
|