2024-02-13 15:13:46 -05:00
|
|
|
{ config, pkgs, username, fullname, email, ... }:
|
2022-01-06 21:14:02 -05:00
|
|
|
{
|
|
|
|
home.username = username;
|
|
|
|
home.homeDirectory = "/home/" + username;
|
|
|
|
|
2022-09-24 23:30:38 -04:00
|
|
|
home.stateVersion = "21.11";
|
|
|
|
|
2024-02-13 15:30:26 -05:00
|
|
|
imports = [ ./shell ./wayland ./password.nix ./email.nix ];
|
2022-01-06 21:14:02 -05:00
|
|
|
|
|
|
|
xdg.enable = true;
|
|
|
|
xdg.userDirs.enable = true;
|
|
|
|
|
|
|
|
programs.git = {
|
|
|
|
enable = true;
|
2022-10-26 15:54:00 -04:00
|
|
|
userName = fullname;
|
2024-02-13 15:13:46 -05:00
|
|
|
userEmail = email;
|
2022-01-11 20:52:14 -05:00
|
|
|
|
2023-10-27 15:05:12 -04:00
|
|
|
signing.key = "6CB106C25E86A9F7";
|
|
|
|
signing.signByDefault = true;
|
|
|
|
|
2022-03-12 20:46:41 -05:00
|
|
|
extraConfig = {
|
|
|
|
credential.helper = "store";
|
|
|
|
git.allowForcePush = true;
|
2023-10-27 15:05:12 -04:00
|
|
|
push.followTags = true;
|
2022-03-12 20:46:41 -05:00
|
|
|
init.defaultBranch = "main";
|
2023-10-27 15:05:12 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
delta.enable = true;
|
|
|
|
delta.options = {
|
|
|
|
features = "decorations";
|
|
|
|
relative-paths = true;
|
2022-04-29 17:38:23 -04:00
|
|
|
|
2023-10-27 15:05:12 -04:00
|
|
|
decorations = {
|
|
|
|
file-style = "yellow";
|
|
|
|
hunk-header-style = "line-number syntax";
|
|
|
|
};
|
2022-03-12 20:46:41 -05:00
|
|
|
};
|
2022-01-06 21:14:02 -05:00
|
|
|
};
|
2022-04-30 13:32:55 -04:00
|
|
|
|
|
|
|
programs.gpg.enable = true;
|
2024-02-20 01:15:47 -05:00
|
|
|
programs.gpg.package = pkgs.gnupg.overrideAttrs (orig: {
|
|
|
|
version = "2.4.0";
|
|
|
|
src = pkgs.fetchurl {
|
|
|
|
url = "mirror://gnupg/gnupg/gnupg-2.4.0.tar.bz2";
|
|
|
|
hash = "sha256-HXkVjdAdmSQx3S4/rLif2slxJ/iXhOosthDGAPsMFIM=";
|
|
|
|
};
|
|
|
|
});
|
|
|
|
|
2022-04-30 13:32:55 -04:00
|
|
|
services.gpg-agent = {
|
|
|
|
enable = true;
|
|
|
|
enableSshSupport = true;
|
|
|
|
pinentryFlavor = "curses";
|
2022-06-13 14:31:49 -04:00
|
|
|
extraConfig = ''
|
|
|
|
allow-loopback-pinentry
|
|
|
|
'';
|
2022-04-30 13:32:55 -04:00
|
|
|
};
|
2022-01-06 21:14:02 -05:00
|
|
|
}
|