dotfiles/modules/services/vaultwarden.nix
2022-10-07 00:44:06 +00:00

25 lines
414 B
Nix

{ config, pkgs, lib, ... }: {
options = {
vaultwardenServer = lib.mkOption {
description = "Hostname for Vaultwarden.";
type = lib.types.str;
};
};
config = {
services.vaultwarden = {
enable = true;
config = {
DOMAIN = config.vaultwardenServer;
SIGNUPS_ALLOWED = false;
};
environmentFile = null;
dbBackend = "sqlite";
};
};
}