adding back LightlyShaders and switching to home-manager based email

This commit is contained in:
Chris Cochrun 2023-03-28 09:31:09 -05:00
parent 11b4152f7d
commit 6ace5b4a6d
2 changed files with 221 additions and 179 deletions

View file

@ -125,7 +125,7 @@ with lib;
airshipper airshipper
# hyprland # hyprland
(callPackage ../ydotool { }) (callPackage ../ydotool { })
# (libsForQt5.callPackage /home/chris/dev/LightlyShaders {}) # LightlyShaders (libsForQt5.callPackage /home/chris/dev/LightlyShaders {}) # LightlyShaders
# (libsForQt5.callPackage /home/chris/.dotfiles/RoundedSBE {}) # (libsForQt5.callPackage /home/chris/.dotfiles/RoundedSBE {})
# (libsForQt5.callPackage /home/chris/dev/church-presenter {}) # librepresenter # (libsForQt5.callPackage /home/chris/dev/church-presenter {}) # librepresenter
nix-index nix-index

View file

@ -22,42 +22,84 @@
# Let Home Manager install and manage itself. # Let Home Manager install and manage itself.
programs.home-manager.enable = true; programs.home-manager.enable = true;
# accounts.email.accounts = { accounts.email = {
# personal = { accounts = {
# address = "chris@cochrun.xyz"; personal = {
# mbsync.enable = true; address = "chris@cochrun.xyz";
# create = "maildir"; userName = "chris@cochrun.xyz";
# mu.enable = true; mbsync.enable = true;
# flavor = "plain"; mu.enable = true;
# imap = { flavor = "plain";
# host = "mail.cochrun.xyz"; primary = true;
# port = 993; passwordCommand = "${pkgs.rbw}/bin/rbw get 'Office 365'";
# tls.enable = true; realName = "Chris Cochrun";
# }; signature = {
# smtp = { text = ''
# host = "mail.cochrun.xyz"; Praising God in all things,
# port = 25; Chris Cochrun
# tls.enable = true; '';
# }; delimiter = ''
# }; ***
# work = { '';
# address = "chris@tfcconnection.org"; showSignature = "append";
# mbsync.enable = true; };
# create = "maildir"; imap = {
# mu.enable = true; host = "mail.cochrun.xyz";
# flavor = "outlook.office365.com"; port = 993;
# imap = { tls.enable = true;
# host = "outlook.office365.com"; };
# port = 993; smtp = {
# tls.enable = true; host = "mail.cochrun.xyz";
# }; port = 25;
# smtp = { tls.enable = true;
# host = "mail.cochrun.xyz"; };
# port = 25; mbsync = {
# tls.enable = true; create = "maildir";
# }; remove = "both";
# }; expunge = "both";
# }; };
maildir.path = "cochrun";
};
work = {
address = "chris@tfcconnection.org";
userName = "chris@tfcconnection.org";
mbsync.enable = true;
mu.enable = true;
flavor = "outlook.office365.com";
passwordCommand = "${pkgs.rbw}/bin/rbw get --full 'Office 365' | ${pkgs.ripgrep}/bin/rg 'sylemail' | ${pkgs.gawk}/bin/awk '{print $2}'";
realName = "Chris Cochrun";
imap = {
host = "outlook.office365.com";
port = 993;
tls.enable = true;
};
smtp = {
host = "smtp.office365.com";
port = 587;
tls.enable = true;
};
mbsync = {
create = "maildir";
remove = "both";
expunge = "both";
extraConfig.account = {
AuthMechs = "LOGIN";
};
};
maildir.path = "office";
signature = {
text = ''
Praising God in all things,
Chris Cochrun
'';
delimiter = ''
***
'';
showSignature = "append";
};
};
};
};
programs.git = { programs.git = {
enable = true; enable = true;
@ -72,168 +114,168 @@
programs.mbsync = { programs.mbsync = {
enable = true; enable = true;
extraConfig = '' # extraConfig = ''
IMAPAccount gmail # IMAPAccount gmail
Host imap.gmail.com # Host imap.gmail.com
User ccochrun21@gmail.com # User ccochrun21@gmail.com
PassCmd "${pkgs.rbw}/bin/rbw get gmail" # PassCmd "${pkgs.rbw}/bin/rbw get gmail"
AuthMechs LOGIN # AuthMechs LOGIN
SSLType IMAPS # SSLType IMAPS
SSLVersions SSLv3
# CertificateFile /opt/local/share/curl/curl-ca-bundle.crt
IMAPAccount office
Host outlook.office365.com
User chris@tfcconnection.org
PassCmd "${pkgs.rbw}/bin/rbw get --full 'Office 365' | ${pkgs.ripgrep}/bin/rg 'mbsync pass' | ${pkgs.gawk}/bin/awk '{print $3}'"
AuthMechs LOGIN
SSLType IMAPS
IMAPAccount outlook
Host outlook.office365.com
User chris.cochrun@outlook.com
PassCmd "${pkgs.rbw}/bin/rbw get outlook"
AuthMechs LOGIN
SSLType IMAPS
IMAPAccount cochrun
Host mail.cochrun.xyz
User chris@cochrun.xyz
PassCmd "${pkgs.rbw}/bin/rbw get 'Office 365'"
AuthMechs LOGIN
SSLType IMAPS
# SSLVersions SSLv3 # SSLVersions SSLv3
# CertificateFile /opt/local/share/curl/curl-ca-bundle.crt # # CertificateFile /opt/local/share/curl/curl-ca-bundle.crt
# THEN WE SPECIFY THE LOCAL AND REMOTE STORAGE
# - THE REMOTE STORAGE IS WHERE WE GET THE MAIL FROM (E.G., THE
# SPECIFICATION OF AN IMAP ACCOUNT)
# - THE LOCAL STORAGE IS WHERE WE STORE THE EMAIL ON OUR COMPUTER
# REMOTE STORAGE (USE THE IMAP ACCOUNT SPECIFIED ABOVE) # IMAPAccount office
IMAPStore gmail-remote # Host outlook.office365.com
Account gmail # User chris@tfcconnection.org
# PassCmd "${pkgs.rbw}/bin/rbw get --full 'Office 365' | ${pkgs.ripgrep}/bin/rg 'sylemail' | ${pkgs.gawk}/bin/awk '{print $2}'"
# AuthMechs LOGIN
# SSLType IMAPS
MaildirStore gmail-local # IMAPAccount outlook
Path ~/Maildir/gmail/ # Host outlook.office365.com
Inbox ~/Maildir/gmail/INBOX # User chris.cochrun@outlook.com
# PassCmd "${pkgs.rbw}/bin/rbw get outlook"
# AuthMechs LOGIN
# SSLType IMAPS
IMAPStore office-remote # IMAPAccount cochrun
Account office # Host mail.cochrun.xyz
# User chris@cochrun.xyz
# PassCmd "${pkgs.rbw}/bin/rbw get 'Office 365'"
# AuthMechs LOGIN
# SSLType IMAPS
# # SSLVersions SSLv3
# # CertificateFile /opt/local/share/curl/curl-ca-bundle.crt
# # THEN WE SPECIFY THE LOCAL AND REMOTE STORAGE
# # - THE REMOTE STORAGE IS WHERE WE GET THE MAIL FROM (E.G., THE
# # SPECIFICATION OF AN IMAP ACCOUNT)
# # - THE LOCAL STORAGE IS WHERE WE STORE THE EMAIL ON OUR COMPUTER
# LOCAL STORAGE (CREATE DIRECTORIES with mkdir -p Maildir/gmail) # # REMOTE STORAGE (USE THE IMAP ACCOUNT SPECIFIED ABOVE)
# IMAPStore gmail-remote
# Account gmail
MaildirStore office-local # MaildirStore gmail-local
Path ~/Maildir/office/ # Path ~/Maildir/gmail/
Inbox ~/Maildir/office/INBOX # Inbox ~/Maildir/gmail/INBOX
Subfolders Verbatim
# IMAPStore office-remote
# Account office
# # LOCAL STORAGE (CREATE DIRECTORIES with mkdir -p Maildir/gmail)
# MaildirStore office-local
# Path ~/Maildir/office/
# Inbox ~/Maildir/office/INBOX
# Subfolders Verbatim
IMAPStore outlook-remote # IMAPStore outlook-remote
Account outlook # Account outlook
MaildirStore outlook-local # MaildirStore outlook-local
Path ~/Maildir/outlook/ # Path ~/Maildir/outlook/
Inbox ~/Maildir/outlook/INBOX # Inbox ~/Maildir/outlook/INBOX
Subfolders Verbatim # Subfolders Verbatim
IMAPStore cochrun-remote # IMAPStore cochrun-remote
Account cochrun # Account cochrun
MaildirStore cochrun-local # MaildirStore cochrun-local
Path ~/Maildir/cochrun/ # Path ~/Maildir/cochrun/
Inbox ~/Maildir/cochrun/INBOX # Inbox ~/Maildir/cochrun/INBOX
Subfolders Verbatim # Subfolders Verbatim
# CONNECTIONS SPECIFY LINKS BETWEEN REMOTE AND LOCAL FOLDERS # # CONNECTIONS SPECIFY LINKS BETWEEN REMOTE AND LOCAL FOLDERS
# # #
# CONNECTIONS ARE SPECIFIED USING PATTERNS, WHICH MATCH REMOTE MAIl # # CONNECTIONS ARE SPECIFIED USING PATTERNS, WHICH MATCH REMOTE MAIl
# FOLDERS. SOME COMMONLY USED PATTERS INCLUDE: # # FOLDERS. SOME COMMONLY USED PATTERS INCLUDE:
# # #
# 1 "*" TO MATCH EVERYTHING # # 1 "*" TO MATCH EVERYTHING
# 2 "!DIR" TO EXCLUDE "DIR" # # 2 "!DIR" TO EXCLUDE "DIR"
# 3 "DIR" TO MATCH DIR # # 3 "DIR" TO MATCH DIR
Channel gmail-inbox
Far :gmail-remote:
Near :gmail-local:
Patterns "INBOX"
Create Both
Expunge Both
SyncState *
Channel gmail-trash
Far :gmail-remote:"[Gmail]/Bin"
Near :gmail-local:"[Gmail].Bin"
Create Both
Expunge Both
SyncState *
Channel gmail-sent
Far :gmail-remote:"[Gmail]/Sent Mail"
Near :gmail-local:"[Gmail].Sent Mail"
Create Both
Expunge Both
SyncState *
Channel gmail-all
Far :gmail-remote:"[Gmail]/All Mail"
Near :gmail-local:"[Gmail].All Mail"
Create Both
Expunge Both
SyncState *
Channel gmail-starred
Far :gmail-remote:"[Gmail]/Starred"
Near :gmail-local:"[Gmail].Starred"
Create Both
Expunge Both
SyncState *
Channel office-inbox
Far :office-remote:
Near :office-local:
Patterns "*"
Create Both
Expunge Both
SyncState *
Channel outlook-inbox
Far :outlook-remote:
Near :outlook-local:
Patterns "*"
Create Both
Expunge Both
SyncState *
Channel cochrun-inbox
Far :cochrun-remote:
Near :cochrun-local:
Patterns "*"
Create Both
Expunge Both
SyncState *
# GROUPS PUT TOGETHER CHANNELS, SO THAT WE CAN INVOKE
# MBSYNC ON A GROUP TO SYNC ALL CHANNELS
#
# FOR INSTANCE: "mbsync gmail" GETS MAIL FROM
# "gmail-inbox", "gmail-sent", and "gmail-trash"
#
# Group gmail
# Channel gmail-inbox # Channel gmail-inbox
# Channel gmail-sent # Far :gmail-remote:
# Near :gmail-local:
# Patterns "INBOX"
# Create Both
# Expunge Both
# SyncState *
# Channel gmail-trash # Channel gmail-trash
# Far :gmail-remote:"[Gmail]/Bin"
# Near :gmail-local:"[Gmail].Bin"
# Create Both
# Expunge Both
# SyncState *
# Channel gmail-sent
# Far :gmail-remote:"[Gmail]/Sent Mail"
# Near :gmail-local:"[Gmail].Sent Mail"
# Create Both
# Expunge Both
# SyncState *
# Channel gmail-all # Channel gmail-all
# Far :gmail-remote:"[Gmail]/All Mail"
# Near :gmail-local:"[Gmail].All Mail"
# Create Both
# Expunge Both
# SyncState *
# Channel gmail-starred # Channel gmail-starred
# Far :gmail-remote:"[Gmail]/Starred"
# Near :gmail-local:"[Gmail].Starred"
# Create Both
# Expunge Both
# SyncState *
Group office # Channel office-inbox
Channel office-inbox # Far :office-remote:
# Near :office-local:
# Patterns "*"
# Create Both
# Expunge Both
# SyncState *
Group outlook # Channel outlook-inbox
Channel outlook-inbox # Far :outlook-remote:
# Near :outlook-local:
# Patterns "*"
# Create Both
# Expunge Both
# SyncState *
Group cochrun # Channel cochrun-inbox
Channel cochrun-inbox # Far :cochrun-remote:
''; # Near :cochrun-local:
# Patterns "*"
# Create Both
# Expunge Both
# SyncState *
# # GROUPS PUT TOGETHER CHANNELS, SO THAT WE CAN INVOKE
# # MBSYNC ON A GROUP TO SYNC ALL CHANNELS
# #
# # FOR INSTANCE: "mbsync gmail" GETS MAIL FROM
# # "gmail-inbox", "gmail-sent", and "gmail-trash"
# #
# # Group gmail
# # Channel gmail-inbox
# # Channel gmail-sent
# # Channel gmail-trash
# # Channel gmail-all
# # Channel gmail-starred
# Group office
# Channel office-inbox
# Group outlook
# Channel outlook-inbox
# Group cochrun
# Channel cochrun-inbox
# '';
}; };
programs.msmtp.enable = true; programs.msmtp.enable = true;
services.mbsync.enable = true; services.mbsync.enable = true;