Further refactoring

This commit is contained in:
Bryan Ramos 2023-06-04 14:44:58 -04:00
parent e2ca654681
commit 91a7234605
8 changed files with 290 additions and 178 deletions

19
modules/git/default.nix Normal file
View file

@ -0,0 +1,19 @@
{ pkgs, lib, config, ... }:
with lib;
let cfg = config.modules.git;
in
{
options.modules.git = { enable = mkEnableOption "git"; };
config = mkIf cfg.enable {
programs.git = {
enable = true;
userName = "Bryan Ramos";
userEmail = "bryan@ramos.codes";
extraConfig = {
init = { defaultBranch = "main"; };
};
};
};
}