From 931a4b061e05a4d225a2304a2188adc84f1e3aed Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Sun, 29 Apr 2018 00:45:56 -0400 Subject: [PATCH 1/1] [rc/getmail,gnupg] migrate to new literate config setup --- getmail/.config/systemd/user/getmail.service | 8 --- getmail/.config/systemd/user/getmail.timer | 10 --- getmail/.getmail/getmailrc | 14 ---- gnupg/.gnupg/gpg-agent.conf | 7 -- rc.org | 74 +++++++++++++++++++- 5 files changed, 73 insertions(+), 40 deletions(-) delete mode 100644 getmail/.config/systemd/user/getmail.service delete mode 100644 getmail/.config/systemd/user/getmail.timer delete mode 100644 getmail/.getmail/getmailrc delete mode 100644 gnupg/.gnupg/gpg-agent.conf diff --git a/getmail/.config/systemd/user/getmail.service b/getmail/.config/systemd/user/getmail.service deleted file mode 100644 index 4e91ef3..0000000 --- a/getmail/.config/systemd/user/getmail.service +++ /dev/null @@ -1,8 +0,0 @@ -[Unit] -Description=getmail service - -[Service] -Type=oneshot -ExecStart=/usr/bin/getmail -StandardOutput=syslog -StandardError=syslog diff --git a/getmail/.config/systemd/user/getmail.timer b/getmail/.config/systemd/user/getmail.timer deleted file mode 100644 index 7644d56..0000000 --- a/getmail/.config/systemd/user/getmail.timer +++ /dev/null @@ -1,10 +0,0 @@ -[Unit] -Description=getmail timer - -[Timer] -OnCalendar=*:0/30 -Persistent=true -Unit=getmail.service - -[Install] -WantedBy=timers.target diff --git a/getmail/.getmail/getmailrc b/getmail/.getmail/getmailrc deleted file mode 100644 index 188c621..0000000 --- a/getmail/.getmail/getmailrc +++ /dev/null @@ -1,14 +0,0 @@ -[retriever] -type = SimplePOP3SSLRetriever -server = fencepost.gnu.org -username = aminb -password_command = ("gpg2", "--no-tty", "-q", "-d", "~/.passwd/gnu.gpg") -port = 995 -use_apop = True - -[destination] -type = Maildir -path = ~/mail/gnu/Inbox/ - -[options] -delete = True diff --git a/gnupg/.gnupg/gpg-agent.conf b/gnupg/.gnupg/gpg-agent.conf deleted file mode 100644 index c456de2..0000000 --- a/gnupg/.gnupg/gpg-agent.conf +++ /dev/null @@ -1,7 +0,0 @@ -default-cache-ttl 43200 -max-cache-ttl 43200 - -default-cache-ttl-ssh 10800 -max-cache-ttl-ssh 10800 - -#pinentry-program /usr/bin/pinentry-qt diff --git a/rc.org b/rc.org index e036f88..6f76b90 100644 --- a/rc.org +++ b/rc.org @@ -787,6 +787,79 @@ $clean_ext = "aux out"; # $pdf_previewer = 'exec zathura --synctex-forward -x \'emacsclient --no-wait +%{line} %{input}\' %O %S'; #+end_src +** getmail + +*** getmailrc +:PROPERTIES: +:header-args+: :tangle ~/.getmail/getmailrc +:END: + +#+begin_src conf +[retriever] +type = SimplePOP3SSLRetriever +server = fencepost.gnu.org +username = aminb +password_command = ("gpg2", "--no-tty", "-q", "-d", "~/.passwd/gnu.gpg") +port = 995 +use_apop = True + +[destination] +type = Maildir +path = ~/mail/gnu/Inbox/ + +[options] +delete = True +#+end_src + +*** getmail.service +:PROPERTIES: +:header-args+: :tangle ~/.config/systemd/user/getmail.service +:END: + +#+begin_src conf :tangle no +[Unit] +Description=getmail service + +[Service] +Type=oneshot +ExecStart=/usr/bin/getmail +StandardOutput=syslog +StandardError=syslog +#+end_src + +*** getmail.timer +:PROPERTIES: +:header-args+: :tangle ~/.config/systemd/user/getmail.timer +:END: + +#+begin_src conf :tangle no +[Unit] +Description=getmail timer + +[Timer] +OnCalendar=*:0/30 +Persistent=true +Unit=getmail.service + +[Install] +WantedBy=timers.target +#+end_src + +** GnuPG +:PROPERTIES: +:header-args+: :tangle ~/.gnupg/gpg-agent.conf +:END: + +#+begin_src conf +default-cache-ttl 43200 +max-cache-ttl 43200 + +default-cache-ttl-ssh 10800 +max-cache-ttl-ssh 10800 + +# pinentry-program /usr/bin/pinentry-qt +#+end_src + * Scripts This section contains various useful scripts and the ones used by the @@ -894,7 +967,6 @@ cat << EOF EOF #+end_src - *** invade-em :PROPERTIES: :header-args+: :tangle ~/.local/bin/invade-em :shebang "#!/bin/bash" -- 2.20.1