2023-10-09 10:44:07 -07:00
|
|
|
{ config, ... }:
|
|
|
|
|
|
|
|
|
|
{
|
2023-12-06 21:46:16 -08:00
|
|
|
services.vaultwarden = {
|
2023-10-09 10:44:07 -07:00
|
|
|
enable = true;
|
2023-12-06 21:46:16 -08:00
|
|
|
config = let const = config.constants; in {
|
2023-10-09 10:44:07 -07:00
|
|
|
# Disable signup
|
|
|
|
|
SIGNUPS_ALLOWED = false;
|
|
|
|
|
# Specify service port
|
2023-12-06 21:46:16 -08:00
|
|
|
ROCKET_ADDRESS = const.localhost;
|
|
|
|
|
ROCKET_PORT = const.port.vault-rkt;
|
2023-10-09 10:44:07 -07:00
|
|
|
# Specify notification port
|
|
|
|
|
WEBSOCKET_ENABLED = true;
|
2023-12-06 21:46:16 -08:00
|
|
|
WEBSOCKET_ADDRESS = const.localhost;
|
|
|
|
|
WEBSOCKET_PORT = const.port.vault-ws;
|
2023-10-09 10:44:07 -07:00
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
}
|