18 lines
446 B
Nix
18 lines
446 B
Nix
{ config, ... }:
|
|
|
|
{
|
|
services.vaultwarden = {
|
|
enable = true;
|
|
config = let const = config.constants; in {
|
|
# Disable signup
|
|
SIGNUPS_ALLOWED = false;
|
|
# Specify service port
|
|
ROCKET_ADDRESS = const.localhost;
|
|
ROCKET_PORT = const.port.vault-rkt;
|
|
# Specify notification port
|
|
WEBSOCKET_ENABLED = true;
|
|
WEBSOCKET_ADDRESS = const.localhost;
|
|
WEBSOCKET_PORT = const.port.vault-ws;
|
|
};
|
|
};
|
|
}
|