mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-24 00:29:43 -04:00
19 lines
312 B
Nix
19 lines
312 B
Nix
{ lib, config, ... }:
|
|
|
|
with lib;
|
|
let cfg = config.modules.git;
|
|
|
|
in
|
|
{ options.modules.git = { enable = mkEnableOption "git"; };
|
|
config = mkIf cfg.enable {
|
|
programs = {
|
|
git = import ./config/git.nix;
|
|
|
|
gh = {
|
|
enable = true;
|
|
settings.git_protocol = "ssh";
|
|
};
|
|
|
|
};
|
|
};
|
|
}
|