mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-10 06:22:56 +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";
|
||
|
};
|
||
|
};
|
||
|
|
||
|
}
|