mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 09:07:21 +01:00
feat[work]: use s/mime certificates for mail
This commit is contained in:
parent
d83ff89712
commit
723ce403b2
6 changed files with 658 additions and 599 deletions
|
|
@ -1,6 +1,8 @@
|
|||
{ self, config, pkgs, lib, vars, nixosConfig ? config, ... }:
|
||||
let
|
||||
inherit (config.swarselsystems) homeDir;
|
||||
inherit (nixosConfig.repo.secrets.local.mail) allMailAddresses;
|
||||
inherit (nixosConfig.repo.secrets.local.work) mailAddress;
|
||||
in
|
||||
{
|
||||
options.swarselmodules.optional.work = lib.mkEnableOption "optional work settings";
|
||||
|
|
@ -21,14 +23,16 @@ in
|
|||
vscode
|
||||
];
|
||||
|
||||
|
||||
systemd.user.sessionVariables = {
|
||||
DOCUMENT_DIR_WORK = lib.mkForce "${homeDir}/Documents/Work";
|
||||
} // lib.optionalAttrs (!config.swarselsystems.isPublic) {
|
||||
SWARSEL_MAIL_ALL = lib.mkForce allMailAddresses;
|
||||
SWARSEL_MAIL_WORK = lib.mkForce mailAddress;
|
||||
};
|
||||
|
||||
accounts.email.accounts.work =
|
||||
let
|
||||
inherit (nixosConfig.repo.secrets.local.work) mailAddress mailName;
|
||||
inherit (nixosConfig.repo.secrets.local.work) mailName;
|
||||
in
|
||||
{
|
||||
primary = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue