users/infinidoge: conditionally include SMTP password
This commit is contained in:
parent
0358ece024
commit
3de783190c
1 changed files with 11 additions and 8 deletions
|
@ -59,13 +59,16 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
home.sessionVariables = {
|
home.sessionVariables =
|
||||||
|
{
|
||||||
KEYID = "0x30E7A4C03348641E";
|
KEYID = "0x30E7A4C03348641E";
|
||||||
POP_SMTP_HOST = common.email.smtp.address;
|
POP_SMTP_HOST = common.email.smtp.address;
|
||||||
POP_SMTP_PORT = common.email.smtp.STARTTLS;
|
POP_SMTP_PORT = common.email.smtp.STARTTLS;
|
||||||
POP_SMTP_USERNAME = common.email.withUser "infinidoge";
|
POP_SMTP_USERNAME = common.email.withUser "infinidoge";
|
||||||
POP_SMTP_PASSWORD = "$(cat ${secrets.smtp-personal})";
|
|
||||||
UNISON = "$HOME/.local/state/unison";
|
UNISON = "$HOME/.local/state/unison";
|
||||||
|
}
|
||||||
|
// lib.optionalAttrs main.modules.secrets.enable {
|
||||||
|
POP_SMTP_PASSWORD = "$(cat ${secrets.smtp-personal})";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue