nixos-config/home-manager/default.nix
Kiana Sheibani afd799ac07 Regress GnuPG to version 2.4.0
Version 2.4.1 contains a bug that prevents emacs's use of it from
working properly.
2024-02-20 01:15:47 -05:00

58 lines
1.2 KiB
Nix

{ config, pkgs, username, fullname, email, ... }:
{
home.username = username;
home.homeDirectory = "/home/" + username;
home.stateVersion = "21.11";
imports = [ ./shell ./wayland ./password.nix ./email.nix ];
xdg.enable = true;
xdg.userDirs.enable = true;
programs.git = {
enable = true;
userName = fullname;
userEmail = email;
signing.key = "6CB106C25E86A9F7";
signing.signByDefault = true;
extraConfig = {
credential.helper = "store";
git.allowForcePush = true;
push.followTags = true;
init.defaultBranch = "main";
};
delta.enable = true;
delta.options = {
features = "decorations";
relative-paths = true;
decorations = {
file-style = "yellow";
hunk-header-style = "line-number syntax";
};
};
};
programs.gpg.enable = true;
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=";
};
});
services.gpg-agent = {
enable = true;
enableSshSupport = true;
pinentryFlavor = "curses";
extraConfig = ''
allow-loopback-pinentry
'';
};
}