23 lines
347 B
Nix
23 lines
347 B
Nix
{ 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;
|
|
|
|
};
|
|
}
|