Add davmail as package for easier setup

This commit is contained in:
Evie Litherland-Smith 2023-10-10 08:29:31 +01:00
parent d989e132d1
commit 459695e9a0
2 changed files with 5 additions and 1 deletions

View file

@ -54,7 +54,10 @@ secret-tool store --label="UKAEA mail mbsync" email evie.litherland-smith@ukaea.
*** Configuration
On first run (or if token expires), stop systemd service and run manually to complete manual auth. Token will stay valid for a little while (no idea how long specifically).
#+begin_src bash
systemctl --user disable --now davmail.service && nix run nixpkgs#davmail -- -notray ~/.davmail.properties
# Restart service to ensure ~/.davmail.properties exists
systemctl --user restart davmail.service
# Disable service and run to use manual authentication
systemctl --user disable --now davmail.service && davmail -notray ~/.davmail.properties
#+end_src
Recreate and enable services after modifying:

View file

@ -1,6 +1,7 @@
{ config, lib, pkgs, hostName, ... }:
{
home.packages = with pkgs; [ davmail ];
programs = {
mbsync = {
enable = true;