feat: nixos side of the config #45

Merged
silver merged 5 commits from #20_wolves-api into main 2023-10-27 01:43:38 +00:00
Showing only changes of commit 1e9b49f459 - Show all commits

View file

@ -80,6 +80,7 @@
"${cfg.env.ldap}" "${cfg.env.ldap}"
"${cfg.env.discord}" "${cfg.env.discord}"
"${cfg.env.mail}" "${cfg.env.mail}"
"${cfg.env.wolves}"
]; ];
}; };
}); });
@ -124,6 +125,10 @@
type = types.str; type = types.str;
description = "Mail details, has EMAIL_SMTP, EMAIL_USER, EMAIL_PASS"; description = "Mail details, has EMAIL_SMTP, EMAIL_USER, EMAIL_PASS";
}; };
wolves = mkOption rec {
type = types.str;
description = "Mail details, has WOLVES_URL, WOLVES_KEY";
};
}; };
users = { users = {
@ -213,12 +218,14 @@
"${cfg.env.ldap}" "${cfg.env.ldap}"
"${cfg.env.discord}" "${cfg.env.discord}"
"${cfg.env.mail}" "${cfg.env.mail}"
"${cfg.env.wolves}"
]; ];
}; };
restartTriggers = [ restartTriggers = [
"${cfg.env.ldap}" "${cfg.env.ldap}"
"${cfg.env.discord}" "${cfg.env.discord}"
"${cfg.env.mail}" "${cfg.env.mail}"
"${cfg.env.wolves}"
]; ];
}; };
} // serviceGenerator scripts; } // serviceGenerator scripts;