add git as default for user
This commit is contained in:
parent
f790a83c87
commit
bb7949e608
|
@ -10,12 +10,10 @@ with lib.wyrdgard; {
|
|||
wyrdgard = {
|
||||
apps.cli-apps = {
|
||||
kitty = enabled;
|
||||
fish = enabled;
|
||||
home-manager = enabled;
|
||||
};
|
||||
|
||||
tools = {
|
||||
git = enabled;
|
||||
direnv = enabled;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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.";
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue