Files
Nixos/modules/system/options/apps/git.nix
T

27 lines
360 B
Nix

{
pkgs,
lib,
config,
...
}:
with lib;
let
cfg = config.os.shell.git;
in
{
options.os.shell.git = {
enable = mkEnableOption "System git service";
};
config = mkIf cfg.enable {
programs.git = {
enable = true;
config = {
init.defaultBranch = "main";
};
};
programs.ssh.enableAskPassword = false;
};
}