users/jan: add work account

This commit is contained in:
Dmitriy Pleshevskiy 2024-05-21 20:39:19 +03:00
parent 0d18d774ff
commit b596259710
Signed by: pleshevskiy
GPG key ID: 17041163DA10A9A2
3 changed files with 18 additions and 0 deletions

Binary file not shown.

Binary file not shown.

View file

@ -1,6 +1,8 @@
{ config, pkgs, lib, inputs, globalData, ... }:
{
imports = [./davmail.secret.nix];
nixpkgs.overlays = lib.mkAfter [
inputs.nil.overlays.nil
inputs.wired.overlays.default
@ -35,6 +37,22 @@
let lanMouseCfg = config.home-manager.users.jan.local.services.lan-mouse;
in lib.optional lanMouseCfg.enable lanMouseCfg.settings.port;
# Required to use MS Exchange in aerc
services.davmail = {
enable = true;
url = "https://outlook.office365.com/EWS/Exchange.asmx";
config.davmail = {
allowRemote = false;
ssl = {
nosecurecaldav = false;
nosecureimap = false;
nosecureldap = false;
nosecuresmtp = false;
};
mode = "O365Manual";
};
};
home-manager.users.jan = {
imports = [
./accounts.secret.nix