BIG changes. Make almost every server service modular, to distribute among multiple servers
This commit is contained in:
parent
30fc0dc800
commit
7e40fd4fb3
44 changed files with 153 additions and 143 deletions
|
@ -2,25 +2,22 @@
|
|||
{
|
||||
imports = [ ./nginx ];
|
||||
|
||||
config = lib.mkIf config.system.server.enable {
|
||||
services.vaultwarden = {
|
||||
enable = true;
|
||||
config = {
|
||||
domain = "https://pass.nixfox.ca";
|
||||
signupsAllowed = false;
|
||||
rocketAddress = "127.0.0.1";
|
||||
rocketPort = 8222;
|
||||
config = lib.mkIf config.services.vaultwarden.enable {
|
||||
services.vaultwarden.config = {
|
||||
domain = "https://pass.nixfox.ca";
|
||||
signupsAllowed = false;
|
||||
rocketAddress = "127.0.0.1";
|
||||
rocketPort = 8222;
|
||||
|
||||
# Smtp email
|
||||
smtpHost = "mx.nixfox.ca";
|
||||
smtpFrom = "noreply@nixfox.ca";
|
||||
smtpFromName = "Vaultwarden";
|
||||
smtpUsername = "noreply@nixfox.ca";
|
||||
smtpPassword = config.secrets.mailPass.nixfoxNoReply;
|
||||
smtpSecurity = "starttls";
|
||||
smtpPort = 587;
|
||||
smtpTimeout = 15;
|
||||
};
|
||||
# Smtp email
|
||||
smtpHost = "mx.nixfox.ca";
|
||||
smtpFrom = "noreply@nixfox.ca";
|
||||
smtpFromName = "Vaultwarden";
|
||||
smtpUsername = "noreply@nixfox.ca";
|
||||
smtpPassword = config.secrets.mailPass.nixfoxNoReply;
|
||||
smtpSecurity = "starttls";
|
||||
smtpPort = 587;
|
||||
smtpTimeout = 15;
|
||||
};
|
||||
|
||||
environment.persistence."/persist".directories = [ "/var/lib/vaultwarden" ];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue