feat: Added caldav
This commit is contained in:
@@ -5,37 +5,60 @@
|
||||
}: {
|
||||
sops = {
|
||||
secrets."accounts/mail/fastmail" = {};
|
||||
secrets."accounts/calendar/fastmail" = {};
|
||||
};
|
||||
accounts.email = {
|
||||
maildirBasePath = "Mail";
|
||||
accounts = {
|
||||
fastmail = rec {
|
||||
maildir = {
|
||||
path = "fastmail";
|
||||
accounts = {
|
||||
email = {
|
||||
maildirBasePath = "Mail";
|
||||
accounts = {
|
||||
fastmail = rec {
|
||||
maildir = {
|
||||
path = "fastmail";
|
||||
};
|
||||
primary = true;
|
||||
address = "email@uttarayan.me";
|
||||
aliases = ["servius@darksailor.dev"];
|
||||
userName = address;
|
||||
realName = "Uttarayan Mondal";
|
||||
imap = {
|
||||
host = "imap.fastmail.com";
|
||||
port = 993;
|
||||
tls.enable = true;
|
||||
# authentication = "login";
|
||||
};
|
||||
smtp = {
|
||||
host = "smtp.fastmail.com";
|
||||
port = 465;
|
||||
tls.enable = true;
|
||||
};
|
||||
imapnotify = {
|
||||
enable = true;
|
||||
};
|
||||
passwordCommand = ["cat" "${config.sops.secrets."accounts/mail/fastmail".path}"];
|
||||
mbsync = {
|
||||
enable = true;
|
||||
create = "both";
|
||||
};
|
||||
};
|
||||
primary = true;
|
||||
address = "email@uttarayan.me";
|
||||
aliases = ["servius@darksailor.dev"];
|
||||
userName = address;
|
||||
realName = "Uttarayan Mondal";
|
||||
imap = {
|
||||
host = "imap.fastmail.com";
|
||||
port = 993;
|
||||
tls.enable = true;
|
||||
# authentication = "login";
|
||||
};
|
||||
smtp = {
|
||||
host = "smtp.fastmail.com";
|
||||
port = 465;
|
||||
tls.enable = true;
|
||||
};
|
||||
imapnotify = {
|
||||
enable = true;
|
||||
};
|
||||
passwordCommand = ["cat" "${config.sops.secrets."accounts/mail/fastmail".path}"];
|
||||
mbsync = {
|
||||
enable = true;
|
||||
create = "both";
|
||||
};
|
||||
};
|
||||
calendar = {
|
||||
basePath = "Calendar";
|
||||
accounts = {
|
||||
fastmail = {
|
||||
remote = {
|
||||
url = "https://caldav.fastmail.com/dav/calendars/user/email@uttarayan.me";
|
||||
userName = "email@uttarayan.me";
|
||||
passwordCommand = ["cat" "${config.sops.secrets."accounts/calendar/fastmail".path}"];
|
||||
type = "caldav";
|
||||
};
|
||||
khal = {
|
||||
enable = true;
|
||||
addresses = ["email@uttarayan.me"];
|
||||
};
|
||||
vdirsyncer = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
6
home/programs/calendar.nix
Normal file
6
home/programs/calendar.nix
Normal file
@@ -0,0 +1,6 @@
|
||||
{pkgs, ...}: {
|
||||
programs.khal.enable = true;
|
||||
programs.qcal.enable = true;
|
||||
programs.vdirsyncer.enable = true;
|
||||
accounts.calendar.accounts.fastmail.qcal.enable = true;
|
||||
}
|
||||
@@ -28,6 +28,7 @@
|
||||
./alejandra.nix
|
||||
./aria2.nix
|
||||
./ast-grep.nix
|
||||
./attic.nix
|
||||
./atuin.nix
|
||||
./bat.nix
|
||||
./binwalk.nix
|
||||
@@ -35,8 +36,10 @@
|
||||
./bottom.nix
|
||||
./btop.nix
|
||||
./cachix.nix
|
||||
./calendar.nix
|
||||
./carapace.nix
|
||||
./cargo.nix
|
||||
./cfcli.nix
|
||||
./ddcbacklight.nix
|
||||
./deploy-rs.nix
|
||||
./direnv.nix
|
||||
@@ -55,6 +58,7 @@
|
||||
./himalaya.nix
|
||||
./hyprshade.nix
|
||||
./jq.nix
|
||||
./jujutsu.nix
|
||||
./just.nix
|
||||
./ncpamixer.nix
|
||||
./neomutt.nix
|
||||
@@ -78,8 +82,5 @@
|
||||
./yazi.nix
|
||||
./yt-dlp.nix
|
||||
./zoxide.nix
|
||||
./attic.nix
|
||||
./cfcli.nix
|
||||
./jujutsu.nix
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user