24 lines
398 B
Nix
24 lines
398 B
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}: let
|
|
cfg = config.alqueva.git;
|
|
in {
|
|
options.alqueva.git = {
|
|
enable = lib.mkEnableOption "git";
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
programs.git = {
|
|
enable = true;
|
|
config = {
|
|
user = {
|
|
name = "Artur Manuel";
|
|
email = "balkenix@outlook.com";
|
|
signingKey = "~/.ssh/id_ed25519";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|