diff --git a/gpg-agent.conf b/gpg-agent.conf index 96d9f04..e5b49c4 100644 --- a/gpg-agent.conf +++ b/gpg-agent.conf @@ -1,4 +1,3 @@ -# pinentry-program /usr/local/bin/pinentry-mac -pinentry-program /run/current-system/sw/bin/pinentry +pinentry-program /Users/dustinswan/.nix-profile/bin/pinentry default-cache-ttl 86400 max-cache-ttl 86400 diff --git a/home-common.nix b/home-common.nix index 312c207..3afb818 100644 --- a/home-common.nix +++ b/home-common.nix @@ -2,12 +2,11 @@ { home.packages = with pkgs; [ - ripgrep fd bat wget silver-searcher tree ranger nodejs yarn mosh msmtp w3m urlview nmap rtv gnupg youtube-dl nodePackages.tern nodePackages.eslint nodePackages.javascript-typescript-langserver nodePackages.js-beautify nodePackages.prettier ffmpeg ispell aspell hexyl nnn entr httpie cacert + ripgrep fd wget silver-searcher tree ranger nodejs yarn mosh msmtp w3m urlview nmap rtv gnupg youtube-dl nodePackages.tern nodePackages.eslint nodePackages.javascript-typescript-langserver nodePackages.js-beautify nodePackages.prettier ffmpeg ispell aspell hexyl nnn entr httpie cacert pinentry ]; home.sessionVariables = { EDITOR = "vim"; - BROWSER = "firefox"; P4USER = "dswan"; P4PORT = "humu.iocom.com:1666"; @@ -179,8 +178,16 @@ userName = "dustinswan@fastmail.com"; imap.host = "mail.messagingengine.com"; smtp.host = "mail.messagingengine.com"; - passwordCommand = "gpg -dq ~/.dustinswan@fastmail.com-password.gpg"; + passwordCommand = "gpg -dq /Users/dustinswan/.dustinswan@fastmail.com-password.gpg"; offlineimap.enable = true; + msmtp.enable = true; + signature = { + text = '' + Dustin Swan + dustinswan.com + ''; + showSignature = "append"; + }; }; IOCOM = { @@ -196,8 +203,17 @@ userName = "dswan@iocom.com"; imap.host = "secure.emailsrvr.com"; smtp.host = "secure.emailsrvr.com"; - passwordCommand = "gpg -dq ~/.iocom-password.gpg"; + passwordCommand = "gpg -dq /Users/dustinswan/.iocom-password.gpg"; offlineimap.enable = true; + msmtp.enable = true; + signature = { + text = '' + Dustin Swan, Software Developer + Visionable Ltd | https://visionable.com + dswan@visionable.com + ''; + showSignature = "append"; + }; }; }; }; @@ -211,7 +227,70 @@ vimAlias = true; withNodeJs = true; withPython3 = true; - extraConfig = builtins.readFile ~/dotfiles/vimrc; + # unimpaired endwise textobj-word-column MatchTag vim-matchmaker vim-vertical-move stdtabs matchit splitjoin vimade floaterm + plugins = with pkgs.vimPlugins; [ nord-vim vim-airline vim-airline-themes vim-sensible vim-repeat vim-surround vim-fugitive vim-speeddating jdaddy-vim ale vim-snippets coc-nvim fzf-vim vim-tmux-navigator vim-multiple-cursors vim-easymotion vim-sneak nerdcommenter nerdtree emmet-vim undotree vim-signature vim-easy-align vim-better-whitespace vim-signify vim-expand-region vim-exchange argtextobj-vim goyo vim-orgmode vim-polyglot vim-devicons vim-startify ]; + extraConfig = '' + " TODO get stdtabs back + set expandtab + set tabstop=2 + set softtabstop=2 + set shiftwidth=2 + + set hidden + set number + set ignorecase + set smartcase + set magic + set mouse=a + + let mapleader="\" + let maplocalleader="\\" + + let g:EasyMotion_smartcase = 1 + + let g:coc_snippet_next = '' + let g:coc_snippet_prev = '' + + let g:airline#extensions#tabline#enabled = 1 + let g:airline#extensions#ale#enabled = 1 + let g:airline_powerline_fonts = 1 + + let g:nord_italic = 1 + " let g:nord_italic_comments = 1 + let g:nord_underline = 1 + colorscheme nord + + nnoremap p4 :! p4 edit % + nnoremap / :noh + nnoremap v vl + nnoremap s sj + nnoremap t :NERDTreeToggle + nnoremap u :UndotreeToggle + xmap ga (EasyAlign) + nmap ga (EasyAlign) + + nnoremap a :Ag + nnoremap f :Files + nnoremap b :Buffers + nnoremap w :Windows + nnoremap c :Commands + nnoremap hf :History + nnoremap hc :History: + nnoremap hs :History/ + nnoremap l :BLines + nnoremap l :Lines + " nnoremap t :BTags + nnoremap t :Tags + nnoremap gc :BCommits + nnoremap gc :Commits + nmap (fzf-maps-n) + xmap (fzf-maps-x) + omap (fzf-maps-o) + imap (fzf-complete-word) + imap (fzf-complete-path) + imap (fzf-complete-file-ag) + imap (fzf-complete-line) + ''; }; programs.newsboat = { @@ -224,6 +303,7 @@ ''; }; + programs.bat.enable = true; programs.gpg.enable = true; programs.htop.enable = true; programs.mpv.enable = true;