home: git: make it enable-able

This commit is contained in:
Bruno BELANYI 2021-03-13 00:01:20 +00:00
parent c2e9225b3d
commit 2732d0558a

View file

@ -1,6 +1,13 @@
{ pkgs, lib, ... }:
{ config, pkgs, lib, ... }:
let
cfg = config.my.home.git;
in
{
programs.git = {
options.my.home.git = with lib.my; {
enable = mkDisableOption "git configuration";
};
config.programs.git = lib.mkIf cfg.enable {
enable = true;
# Who am I?