Refactor modules

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2024-06-13 12:20:45 +03:00
parent 0357a7bfbf
commit df315f97d6
32 changed files with 317 additions and 253 deletions

22
user/configs/git.nix Normal file
View 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;
};
};
}