{ config, lib, ... }: let cfg = config.git; in { options.git = { vars = lib.mkOption { type = lib.types.attrs; description = "Variables for the user"; }; }; config = { programs.git = { enable = true; lfs.enable = true; userEmail = cfg.vars.email; userName = cfg.vars.fullName; }; }; }