mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-24 00:29:43 -04:00
28 lines
509 B
Nix
28 lines
509 B
Nix
{ lib, pkgs, config, ... }:
|
|
|
|
with lib;
|
|
let
|
|
cfg = config.modules.user.git;
|
|
|
|
in
|
|
{ options.modules.user.git = { enable = mkEnableOption "user.git"; };
|
|
config = mkIf cfg.enable {
|
|
programs = {
|
|
git = {
|
|
enable = true;
|
|
} // config.user.gitConfig;
|
|
gh = {
|
|
enable = true;
|
|
settings.git_protocol = "ssh";
|
|
};
|
|
};
|
|
|
|
home.packages = with pkgs; [
|
|
git-crypt
|
|
];
|
|
|
|
programs.bash.initExtra = ''
|
|
${import ./config/bashScripts/cdg.nix}
|
|
'';
|
|
};
|
|
}
|