Files
old-nixos-dotfiles/user/homed/git/default.nix
2025-03-07 17:04:41 +09:00

20 lines
483 B
Nix

{ config, pkgs, userSettings, ... }:
{
environment.systemPackages = with pkgs; [
git
gh
];
homix.".gitconfig".text = ''
[user]
email = ${userSettings.email-dev}
name = ${userSettings.name}
[credential "https://github.com"]
helper =
helper = ${pkgs.gh}/bin/gh auth git-credential
[credential "https://gist.github.com"]
helper =
helper = ${pkgs.gh}/bin/gh auth git-credential
'';
}