This commit is contained in:
2026-03-26 20:26:31 -05:00
parent 979344917e
commit 53489fe173
9 changed files with 108 additions and 18 deletions

View File

@@ -0,0 +1,37 @@
{ config, lib, pkgs, ... }:
{
accounts = {
email.accounts = {
gmail = {
primary = true;
realName = "Matt Jallen";
address = "matt.l.jallen@gmail.com";
userName = "matt.l.jallen@gmail.com";
passwordCommand = "${pkgs.uutils-coreutils-noprefix}/bin/cat ${config.sops.secrets."gmail-smtp-password".path}";
flavor = "gmail.com";
smtp = {
tls = {
enable = false;
useStartTls = true;
};
host = "smtp.gmail.com";
port = lib.mkForce 465;
};
};
protonmail = {
realName = "Matt Jallen";
address = "jalle008@protonmail.com";
userName = "jalle008@protonmail.com";
passwordCommand = "${pkgs.uutils-coreutils-noprefix}/bin/cat ${config.sops.secrets."protonmail-password".path}";
smtp = {
tls = {
enable = false;
useStartTls = true;
};
host = "127.0.0.1";
port = lib.mkForce 1025;
};
};
};
};
}

View File

@@ -5,8 +5,6 @@
# To silence this warning and keep legacy behavior, set:
# programs.password-store.settings = { PASSWORD_STORE_DIR = "$XDG_DATA_HOME/password-store"; };
programs.password-store = {
settings = {
PASSWORD_STORE_DIR = "$XDG_DATA_HOME/password-store";
};
settings = { };
};
}

View File

@@ -0,0 +1,24 @@
{ config, lib, pkgs, namespace, ... }:
let
cfg = config.${namespace}.programs.thunderbird;
in
{
options.${namespace}.programs.thunderbird = {
enable = lib.mkEnableOption "thunderbird";
};
config = lib.mkIf cfg.enable {
programs.thunderbird = {
enable = true;
profiles = {
mjallen = {
isDefault = true;
accountsOrder = [
"gmail"
"protonmail"
];
};
};
};
};
}

View File

@@ -0,0 +1,18 @@
{ config, lib, pkgs, namespace, ... }:
let
cfg = config.${namespace}.services.protonmail;
in
{
options.${namespace}.services.protonmail = {
enable = lib.mkEnableOption "protonmail bridge";
};
config = lib.mkIf cfg.enable {
services.protonmail-bridge = {
enable = true;
extraPackages = with pkgs; [ pass ];
};
home.packages = with pkgs; [ protonmail-bridge-gui ];
};
}

View File

@@ -15,9 +15,9 @@ in
age.keyFile = "/home/${config.home.username}/.config/sops/age/keys.txt";
defaultSopsFile = "/etc/nixos/secrets/secrets.yaml";
validateSopsFiles = false;
# secrets = {
# "github-token" = { };
# };
secrets = {
"gmail-smtp-password" = { };
};
# templates = {
# ".env".content = ''
# GITHUB_TOKEN = "${config.sops.placeholder.github-token}"