{ config, pkgs, ... }: { imports = [ ./shell # ./editors ./git.nix ]; home.packages = with pkgs; [ ncurses ]; services.gpg-agent = { enable = true; enableSshSupport = true; # use auth subkey's keygrip: gpg2 -K --with-keygrip sshKeys = [ "3C48489F3B0FBB44E72180D4B1D7541C201C9987" ]; defaultCacheTtl = 600; defaultCacheTtlSsh = 600; pinentryFlavor = "curses"; }; programs.gpg.enable = true; home.sessionVariables = with pkgs; { EDITOR = "nvim"; }; programs.neovim.enable = true; programs.neovim.viAlias = true; programs.neovim.vimAlias = true; programs.git.defaultProfile = "private"; xdg.configFile."nixpkgs/config.nix".text = '' { allowUnfree = true; } ''; home.stateVersion = "21.11"; }