18 lines
477 B
Nix
18 lines
477 B
Nix
|
{ lib, pkgs, config, ...}: let
|
||
|
inherit (lib) mkIf mkEnableOption mkOption;
|
||
|
cfg = config.chuj.stuff.git;
|
||
|
user = config.chuj.system.user;
|
||
|
in {
|
||
|
options.chuj.stuff.git = {
|
||
|
enable = mkEnableOption "git";
|
||
|
};
|
||
|
config = {
|
||
|
environment.systemPackages = [ pkgs.git ];
|
||
|
home-manager.users.${user}.programs.git = {
|
||
|
enable = true;
|
||
|
userName = "krizej";
|
||
|
userEmail = "krizej@protonmail.com";
|
||
|
extraConfig.init.defaultBranch = "master";
|
||
|
};
|
||
|
};
|
||
|
}
|