2024-04-11 20:15:47 +02:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}:
|
2023-10-22 17:12:42 +02:00
|
|
|
with lib;
|
|
|
|
{
|
2024-04-11 20:15:47 +02:00
|
|
|
imports = [ ./embedded.nix ];
|
2023-10-22 17:12:42 +02:00
|
|
|
|
|
|
|
options.development.enableGit = mkOption {
|
|
|
|
type = types.bool;
|
|
|
|
default = true;
|
|
|
|
example = false;
|
|
|
|
description = ''
|
|
|
|
Enable git and its configuration.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
config.programs.git = mkIf config.development.enableGit {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.gitAndTools.gitFull;
|
|
|
|
userName = "Victor Mignot";
|
|
|
|
userEmail = "dala@dalaran.fr";
|
|
|
|
signing = mkIf config.enableGPGKeyring {
|
|
|
|
key = "BEAFED3D";
|
|
|
|
signByDefault = true;
|
|
|
|
};
|
|
|
|
extraConfig = {
|
|
|
|
init = {
|
|
|
|
defaultBranch = "main";
|
|
|
|
};
|
|
|
|
core = {
|
2024-07-26 21:32:21 +02:00
|
|
|
editor = "${pkgs.helix}/bin/hx";
|
2023-10-22 17:12:42 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|