hmm
This commit is contained in:
37
modules/home/accounts/default.nix
Normal file
37
modules/home/accounts/default.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -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 = { };
|
||||
};
|
||||
}
|
||||
|
||||
24
modules/home/programs/thunderbird/default.nix
Normal file
24
modules/home/programs/thunderbird/default.nix
Normal 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"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
18
modules/home/services/protonmail-bridge/default.nix
Normal file
18
modules/home/services/protonmail-bridge/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
||||
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user