23 lines
349 B
Nix
23 lines
349 B
Nix
{ 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;
|
|
};
|
|
};
|
|
}
|