home: git: make it enable-able
This commit is contained in:
parent
c2e9225b3d
commit
2732d0558a
|
@ -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?
|
||||
|
|
Loading…
Reference in a new issue