{ config, lib, pkgs, ... }: with lib; { options.modules.git = { enable = mkOption { type = types.bool; default = false; }; }; config = mkIf config.modules.git.enable { home.packages = with pkgs; [ git ]; home.file.".gitconfig" = { executable = false; text = '' [user] email = david@dvdt.dev name = David Lick [color] ui = true ''; }; home.file.".ssh/config" = { executable = false; text = '' Host git.dvdt.dev User git Hostname git.dvdt.dev IdentityFile ~/.ssh/gitea_ed25519 IdentitiesOnly true ''; }; }; }