mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-01-04 10:06:51 +01:00
25 lines
504 B
Nix
25 lines
504 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
let cfg = config.jopejoe1.git;
|
|
in {
|
|
options.jopejoe1.git = {
|
|
enable = lib.mkEnableOption "Enable Git";
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
programs.lazygit.enable = true;
|
|
programs.git = {
|
|
enable = true;
|
|
package = pkgs.git;
|
|
userEmail = "johannes@joens.email";
|
|
userName = "jopejoe1";
|
|
extraConfig = {
|
|
core = {
|
|
whitespace = [ "blank-at-eol" "blank-at-eof" "space-before-tab" ];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|
|
|
|
|