mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-26 22:25:36 +00:00
25 lines
414 B
Nix
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";
|
||
|
};
|
||
|
};
|
||
|
|
||
|
}
|