42 lines
742 B
Nix
42 lines
742 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
with lib;
|
|
{
|
|
imports = [
|
|
./embedded.nix
|
|
./networking.nix
|
|
];
|
|
|
|
options.my.development.git.enable = mkOption {
|
|
type = types.bool;
|
|
default = true;
|
|
example = false;
|
|
description = ''
|
|
Enable git and its configuration.
|
|
'';
|
|
};
|
|
|
|
config.programs.git = mkIf config.my.development.git.enable {
|
|
enable = true;
|
|
package = pkgs.gitAndTools.gitFull;
|
|
userName = "Victor Mignot";
|
|
userEmail = "dala@dalaran.fr";
|
|
signing = mkIf config.my.pgp.enable {
|
|
key = "BEAFED3D";
|
|
signByDefault = true;
|
|
};
|
|
extraConfig = {
|
|
init = {
|
|
defaultBranch = "main";
|
|
};
|
|
core = {
|
|
editor = "${pkgs.helix}/bin/hx";
|
|
};
|
|
};
|
|
};
|
|
}
|