mirror of
https://github.com/librephoenix/nixos-config
synced 2025-01-19 15:15:52 +05:30
14 lines
419 B
Nix
14 lines
419 B
Nix
{ config, pkgs, userSettings, ... }:
|
|
|
|
{
|
|
home.packages = [ pkgs.git ];
|
|
programs.git.enable = true;
|
|
programs.git.userName = userSettings.name;
|
|
programs.git.userEmail = userSettings.email;
|
|
programs.git.extraConfig = {
|
|
init.defaultBranch = "main";
|
|
safe.directory = [ ("/home/" + userSettings.username + "/.dotfiles")
|
|
("/home/" + userSettings.username + "/.dotfiles/.git") ];
|
|
};
|
|
}
|