forked from mirrors_public/oddlama_nix-config
feat: add more mail accounts to thunderbird
This commit is contained in:
parent
498cf29a70
commit
f8c7193bd6
3 changed files with 10 additions and 30 deletions
|
@ -28,12 +28,6 @@ in
|
||||||
mode = "640";
|
mode = "640";
|
||||||
};
|
};
|
||||||
|
|
||||||
age.secrets.mailpw-206fd3b8 = {
|
|
||||||
rekeyFile = ./secrets/mailpw-206fd3b8.age;
|
|
||||||
group = myuser;
|
|
||||||
mode = "640";
|
|
||||||
};
|
|
||||||
|
|
||||||
home-manager.users.${myuser} = {
|
home-manager.users.${myuser} = {
|
||||||
imports = [
|
imports = [
|
||||||
../modules
|
../modules
|
||||||
|
|
|
@ -1,31 +1,17 @@
|
||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
nixosConfig,
|
|
||||||
pkgs,
|
|
||||||
...
|
...
|
||||||
}: let
|
}: {
|
||||||
rageWrapper = pkgs.writeShellScript "rage-decrypt-yubikey" ''
|
accounts.email.accounts = lib.flip lib.mapAttrs' config.userSecrets.accounts.email (_n: v:
|
||||||
export PATH="${pkgs.age-plugin-yubikey}:$PATH"
|
lib.nameValuePair v.address (
|
||||||
exec ${pkgs.rage}/bin/rage
|
lib.recursiveUpdate v {
|
||||||
'';
|
thunderbird = {
|
||||||
in {
|
enable = true;
|
||||||
accounts.email.accounts =
|
profiles = ["personal"];
|
||||||
lib.flip lib.mapAttrs' config.userSecrets.accounts.email
|
};
|
||||||
(_n: v:
|
}
|
||||||
lib.nameValuePair v.address ({
|
));
|
||||||
# TODO genericize
|
|
||||||
passwordCommand =
|
|
||||||
[rageWrapper.out "-d"]
|
|
||||||
++ lib.concatMap (x: ["-i" x]) nixosConfig.age.rekey.masterIdentities
|
|
||||||
++ [nixosConfig.age.secrets.mailpw-206fd3b8.path];
|
|
||||||
|
|
||||||
thunderbird = {
|
|
||||||
enable = true;
|
|
||||||
profiles = ["personal"];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
// v));
|
|
||||||
|
|
||||||
programs.thunderbird = {
|
programs.thunderbird = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue