2024-10-15 03:28:56 -04:00
|
|
|
{ config, pkgs, username, fullname, email, ... }:
|
2023-01-07 20:54:12 -05:00
|
|
|
{
|
|
|
|
home.username = username;
|
|
|
|
home.homeDirectory = "/home/" + username;
|
|
|
|
|
|
|
|
home.stateVersion = "22.11";
|
|
|
|
|
|
|
|
imports = [ ../home-manager/shell ];
|
|
|
|
|
|
|
|
xdg.enable = true;
|
|
|
|
xdg.userDirs.enable = true;
|
|
|
|
|
|
|
|
programs.git = {
|
|
|
|
enable = true;
|
|
|
|
userName = fullname;
|
2024-10-15 03:28:56 -04:00
|
|
|
userEmail = email;
|
2023-01-07 20:54:12 -05:00
|
|
|
|
|
|
|
extraConfig = {
|
|
|
|
credential.helper = "store";
|
|
|
|
git.allowForcePush = true;
|
|
|
|
init.defaultBranch = "main";
|
|
|
|
|
|
|
|
user.signingkey = "6CB106C25E86A9F7";
|
|
|
|
commit.gpgsign = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
programs.gpg.enable = true;
|
|
|
|
services.gpg-agent = {
|
|
|
|
enable = true;
|
|
|
|
enableSshSupport = true;
|
|
|
|
pinentryFlavor = "curses";
|
|
|
|
extraConfig = ''
|
|
|
|
allow-emacs-pinentry
|
|
|
|
allow-loopback-pinentry
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|