Refactor modules
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
22
user/configs/git.nix
Normal file
22
user/configs/git.nix
Normal file
@@ -0,0 +1,22 @@
|
||||
{ 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;
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user