From ab2ce38ea47f55611541c25b4e85a288934cf869 Mon Sep 17 00:00:00 2001 From: Christopher James Hayward Date: Sat, 5 Aug 2023 13:34:29 -0400 Subject: [PATCH] Fix email & pass init commands --- README.org | 8 ++++++-- modules/emacs.nix | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/README.org b/README.org index 03b58da..eaedf9f 100644 --- a/README.org +++ b/README.org @@ -2264,6 +2264,10 @@ epkgs.ox-hugo #+NAME: emacs-pass-extras #+BEGIN_SRC nix pkgs.pass +(pkgs.writeShellScriptBin "pass-init" '' + ${pkgs.git}/bin/git clone git@git.chrishayward.xyz:chris/passwords /home/chris/.password-store + ${pkgs.pass}/bin/pass init +'') #+END_SRC With [[https://password-store.org][Pass]], each password lives inside of an encrypted [[https://gnupg.org][GPG]] file, whose name is the title of the website or resource that requires the password. These encrypted files may be organized into meaningful folder hierarchies, compies from computer to computer, and in general, manipulated using standard command line tools. @@ -2315,8 +2319,8 @@ Manage Docker from inside of Emacs using [[https://github.com/Silex/docker.el][D pkgs.mu pkgs.isync (pkgs.writeShellScriptBin "mail-init" '' - ${pkgs.mu} init --maildir="/home/chris/.cache/mail" --my-address="chris@chrishayward.xyz" - ${pkgs.mu} index + ${pkgs.mu}/bin/mu init --maildir="/home/chris/.cache/mail" --my-address="chris@chrishayward.xyz" + ${pkgs.mu}/bin/mu index '') (pkgs.writeShellScriptBin "mail-sync" '' ${pkgs.isync}/bin/mbsync -a diff --git a/modules/emacs.nix b/modules/emacs.nix index a6475ad..d9b83bc 100644 --- a/modules/emacs.nix +++ b/modules/emacs.nix @@ -80,11 +80,15 @@ in { pkgs.nitrogen pkgs.autorandr pkgs.pass + (pkgs.writeShellScriptBin "pass-init" '' + ${pkgs.git}/bin/git clone git@git.chrishayward.xyz:chris/passwords /home/chris/.password-store + ${pkgs.pass}/bin/pass init + '') pkgs.mu pkgs.isync (pkgs.writeShellScriptBin "mail-init" '' - ${pkgs.mu} init --maildir="/home/chris/.cache/mail" --my-address="chris@chrishayward.xyz" - ${pkgs.mu} index + ${pkgs.mu}/bin/mu init --maildir="/home/chris/.cache/mail" --my-address="chris@chrishayward.xyz" + ${pkgs.mu}/bin/mu index '') (pkgs.writeShellScriptBin "mail-sync" '' ${pkgs.isync}/bin/mbsync -a