{ config, lib, pkgs, ... }: { imports = [ ./email.nix ./calendar.nix ./contact.nix ]; systemd.user.services = { protonmail-bridge = { Unit = { Description = "Protonmail Bridge"; After = [ "network.target" ]; }; Service = { Restart = "always"; Environment = "PATH=${pkgs.gnome3.gnome-keyring}/bin"; ExecStart = "${pkgs.protonmail-bridge}/bin/protonmail-bridge --noninteractive --log-level info"; }; Install.WantedBy = [ "graphical-session.target" "mbsync.service" "imapnotify-proton.service" ]; }; davmail = { Unit = { Description = "DavMail"; After = [ "network.target" ]; }; Service = { Restart = "always"; ExecStart = "${pkgs.davmail}/bin/davmail -notray"; }; Install.WantedBy = [ "graphical-session.target" "mbsync.service" "imapnotify-ukaea.service" ]; }; }; services = { mbsync = { enable = true; frequency = "*:0/15"; }; imapnotify.enable = true; vdirsyncer.enable = true; }; }