nixos/homeConfig/modules/git/default.nix
2023-06-22 06:47:20 -04:00

21 lines
373 B
Nix

{ lib, pkgs, 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";
};
};
home.packages = with pkgs; [
git-crypt
];
};
}