Browse Source

mail and xdg fixes

rework-profiles
parent
commit
c2e486af76
Signed by: govanify GPG Key ID: DE62E1E2A6145556
4 changed files with 14 additions and 9 deletions
  1. +0
    -1
      README.md
  2. +11
    -7
      common/xdg.nix
  3. +1
    -1
      dotfiles/mail/mutt/mailsync.sh
  4. +2
    -0
      dotfiles/mail/mutt/mutt-main.muttrc

+ 0
- 1
README.md View File

@ -12,7 +12,6 @@ TODo list sorted by priority:
* security: redirect IPv6 through tor
* workflow: weechat-matrix and vim-prosession
* mail: make your replies appear in threads
* mail: make gpg less shobby(check why keyid does not work when encrypting)
* locale: SOMEFUCKINGHOW ibus sometimes works and sometimes doesn't. wtf?
* security: security hardening through sandboxing
* workflow: set up patchouli to have regular and automated backups


+ 11
- 7
common/xdg.nix View File

@ -5,6 +5,9 @@
# that(ie modify desktop file)
# java: need to make a system wrapper like steam up above
# need to verify: dbus, doesn't appear on my system and breaks nixos build
# anyways
# firefox: doesn't seem to work?
{ config, pkgs, ... }: {
# ssh devs don't want to make ssh XDG compliant? well let's roll our own
# compliance!
@ -25,9 +28,10 @@
});
## rarely created on my setup, seems to be x11 related? either way here we go
#dbus = pkgs.dbus.overrideAttrs (oldAttrs: rec {
# NOT haha, this breaks nixos build at some point, so let's forget this
# dbus = super.dbus.overrideAttrs (oldAttrs: rec {
#postPatch = oldAttrs.postPatch + ''
#sed -i 's/\.dbus/\.config\/dbus/' $(grep -Rl '"\.dbus"')
#sed -i 's/"\.dbus"/"\.config\/dbus"/' $(grep -Rl '"\.dbus"')
#'';
#});
@ -42,11 +46,11 @@
## a PR is in development but knowing the entire thing has been in the work
## since 15 years ago I'd assume it's going to take a _little_ bit longer
## https://phabricator.services.mozilla.com/D6995
#firefox-wayland = pkgs.firefox-wayland.overrideAttrs (oldAttrs: rec {
#postPatch = ''
#sed -i 's/\.mozilla/\.local\/share\/mozilla/' $(grep -Rl '"\.mozilla"')
#'';
#});
firefox-wayland = super.firefox-wayland.overrideAttrs (oldAttrs: rec {
postPatch = ''
sed -i 's/"\.mozilla"/"\.local\/share\/mozilla"/' $(grep -Rl '"\.mozilla"')
'';
});
};
};


+ 1
- 1
dotfiles/mail/mutt/mailsync.sh View File

@ -6,7 +6,7 @@ pgrep -u "${USER:=$LOGNAME}" >/dev/null || { echo "$USER not logged in; sync wil
pgrep -x mbsync >/dev/null && { echo "mbsync is already running." ; exit ;}
# check if the mailserver is online || if we have internet connection
ping -q -c 1 govanify.com > /dev/null || { echo "No internet connection detected."; exit ;}
wget -q --spider https://govanify.com || { echo "No internet connection detected."; exit ;}
# Check account for new mail. Notify if there is new content.
syncandnotify() {


+ 2
- 0
dotfiles/mail/mutt/mutt-main.muttrc View File

@ -10,6 +10,8 @@ set pgp_default_key="52142D39A7CEF8FA872BCA7FDE62E1E2A6145556"
set pgp_check_gpg_decrypt_status_fd
#set pgp_use_gpg_agent = yes
set pgp_self_encrypt = yes
set crypt_protected_headers_save = yes
set crypt_protected_headers_write = yes
set mailcap_path = ~/.config/mutt/mailcap
set date_format="%d/%m/%y %I:%M%p"


Loading…
Cancel
Save