Refactor configs

This commit is contained in:
Invariantspace 2024-08-31 21:13:43 -07:00
parent 84f7bc915f
commit 9710cae748
No known key found for this signature in database
GPG key ID: EBC4A20067373921
12 changed files with 125 additions and 128 deletions

View file

@ -1,14 +1,12 @@
{config, ...}: {
services.vaultwarden = {
enable = true;
config = let
const = config.constants;
in {
config = with config.constants; {
# Disable signup
SIGNUPS_ALLOWED = false;
# Specify service port
ROCKET_ADDRESS = const.localhost;
ROCKET_PORT = const.port.vault;
ROCKET_ADDRESS = localhost;
ROCKET_PORT = port.vault;
};
};
}