nixos-config/modules/workstation/home-manager/development/default.nix

39 lines
713 B
Nix
Raw Normal View History

2024-04-11 20:15:47 +02:00
{
config,
lib,
pkgs,
...
}:
with lib;
{
2024-04-11 20:15:47 +02:00
imports = [ ./embedded.nix ];
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 = {
editor = "${pkgs.neovim}/bin/nvim";
};
};
};
}