add git as default for user

This commit is contained in:
Christoph Hollizeck 2024-03-27 13:19:50 +01:00
parent f790a83c87
commit bb7949e608
3 changed files with 6 additions and 8 deletions

View file

@ -10,12 +10,10 @@ with lib.wyrdgard; {
wyrdgard = {
apps.cli-apps = {
kitty = enabled;
fish = enabled;
home-manager = enabled;
};
tools = {
git = enabled;
direnv = enabled;
};
};

View file

@ -10,7 +10,7 @@ with lib.wyrdgard; let
cfg = config.wyrdgard.apps.cli-apps.fish;
in {
options.wyrdgard.apps.cli-apps.fish = with types; {
enable = mkBoolOpt false "Whether or not to enable the fish shell";
enable = mkBoolOpt true "Whether or not to enable the fish shell";
};
config = mkIf cfg.enable {

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