Files
nix/user/configs/git.nix
Nikolaos Karaolidis df315f97d6 Refactor modules
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
2024-06-13 12:20:45 +03:00

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;
};
};
}