refactor: move email to global variable

This commit is contained in:
2024-10-27 16:40:34 +05:30
parent 1a59094c57
commit f5e87d9be2
10 changed files with 33 additions and 21 deletions

View File

@ -2,11 +2,12 @@
config,
pkgs,
lib,
email,
...
}: {
security = {
acme = {
defaults.email = "0xtux@pm.me";
defaults.email = "${email}";
acceptTerms = true;
};
};

View File

@ -1,6 +1,7 @@
{
lib,
username,
email,
...
}: {
services = {
@ -10,7 +11,7 @@
server.http_port = 8888;
security = {
admin_user = "${username}";
admin_email = "0xtux@pm.me";
admin_email = "${email}";
};
};
};

View File

@ -1,6 +1,7 @@
{
config,
lib,
email,
...
}: {
services = {
@ -16,8 +17,8 @@
adminUser = {
activate = true;
email = "${email}";
name = "tux";
email = "0xtux@pm.me";
passwordFile = config.sops.secrets.plausible_password.path;
};