From: Amin Bandali Date: Sun, 29 Apr 2018 04:45:56 +0000 (-0400) Subject: [rc/getmail,gnupg] migrate to new literate config setup X-Git-Url: https://git.shemshak.org/~bandali/configs/commitdiff_plain/931a4b061e05a4d225a2304a2188adc84f1e3aed [rc/getmail,gnupg] migrate to new literate config setup --- 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"