add git as default for user

This commit is contained in:
Christoph Hollizeck 2024-03-27 13:19:50 +01:00
parent f41672b465
commit 48352469f2
Signed by: Daholli
GPG key ID: 249300664F2AF2C7
3 changed files with 6 additions and 8 deletions

View file

@ -1,17 +1,17 @@
{
options,
lib,
config,
pkgs,
...
}: let
inherit (lib) types mkEnableOption mkIf;
inherit (lib.wyrdgard) mkOpt enabled;
}:
with lib;
with lib.wyrdgard; let
cfg = config.wyrdgard.tools.git;
user = config.wyrdgard.user;
in {
options.wyrdgard.tools.git = {
enable = mkEnableOption "Git";
enable = mkBoolOpt true "Enable Git (Default true)";
userName = mkOpt types.str user.fullName "The name to configure git with.";
userEmail = mkOpt types.str user.email "The email to configure git with.";
};