add git as default for user
This commit is contained in:
parent
f790a83c87
commit
bb7949e608
|
@ -10,12 +10,10 @@ with lib.wyrdgard; {
|
||||||
wyrdgard = {
|
wyrdgard = {
|
||||||
apps.cli-apps = {
|
apps.cli-apps = {
|
||||||
kitty = enabled;
|
kitty = enabled;
|
||||||
fish = enabled;
|
|
||||||
home-manager = enabled;
|
home-manager = enabled;
|
||||||
};
|
};
|
||||||
|
|
||||||
tools = {
|
tools = {
|
||||||
git = enabled;
|
|
||||||
direnv = enabled;
|
direnv = enabled;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -10,7 +10,7 @@ with lib.wyrdgard; let
|
||||||
cfg = config.wyrdgard.apps.cli-apps.fish;
|
cfg = config.wyrdgard.apps.cli-apps.fish;
|
||||||
in {
|
in {
|
||||||
options.wyrdgard.apps.cli-apps.fish = with types; {
|
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 {
|
config = mkIf cfg.enable {
|
||||||
|
|
|
@ -1,17 +1,17 @@
|
||||||
{
|
{
|
||||||
|
options,
|
||||||
lib,
|
lib,
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: let
|
}:
|
||||||
inherit (lib) types mkEnableOption mkIf;
|
with lib;
|
||||||
inherit (lib.wyrdgard) mkOpt enabled;
|
with lib.wyrdgard; let
|
||||||
|
|
||||||
cfg = config.wyrdgard.tools.git;
|
cfg = config.wyrdgard.tools.git;
|
||||||
user = config.wyrdgard.user;
|
user = config.wyrdgard.user;
|
||||||
in {
|
in {
|
||||||
options.wyrdgard.tools.git = {
|
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.";
|
userName = mkOpt types.str user.fullName "The name to configure git with.";
|
||||||
userEmail = mkOpt types.str user.email "The email to configure git with.";
|
userEmail = mkOpt types.str user.email "The email to configure git with.";
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue