sops (server part)
This commit is contained in:
@@ -2,12 +2,13 @@
|
||||
options.my.servers.vaultwarden.enable = lib.mkEnableOption "enable";
|
||||
config = lib.mkIf (config.my.servers.vaultwarden.enable
|
||||
&& config.my.servers.postgres.enable) {
|
||||
sops.secrets.vaultwarden.sopsFile = ../../secrets/env.yaml;
|
||||
services = {
|
||||
vaultwarden = {
|
||||
enable = true;
|
||||
dbBackend = "postgresql";
|
||||
package = pkgs.vaultwarden;
|
||||
environmentFile = "/var/lib/vaultwarden.env";
|
||||
environmentFile = config.sops.vaultwarden.path;
|
||||
config = {
|
||||
ROCKET_ADDRESS = "${config.my.localhost}";
|
||||
ROCKET_PORT = 8222;
|
||||
@@ -20,6 +21,11 @@
|
||||
SIGNUPS_ALLOWED = false;
|
||||
EXTENDED_LOGGING = true;
|
||||
LOG_LEVEL = "warn";
|
||||
SMTP_HOST = config.my.localhost;
|
||||
SMTP_PORT = 25;
|
||||
SMTP_SSL = false;
|
||||
SMTP_FROM = config.my.smtpemail;
|
||||
SMTP_FROM_NAME = config.my.smtpemail;
|
||||
};
|
||||
};
|
||||
nginx = {
|
||||
|
||||
Reference in New Issue
Block a user