helm/modules/services/vaultwarden.nix
Henrik Lissner 327b113a07 refactor!: rename bitwarden -> vaultwarden
Was renamed upstream, in NixOS 21.11.
2021-09-04 00:10:46 +02:00

24 lines
457 B
Nix

{ options, config, lib, pkgs, ... }:
with lib;
with lib.my;
let cfg = config.modules.services.vaultwarden;
in {
options.modules.services.vaultwarden = {
enable = mkBoolOpt false;
};
config = mkIf cfg.enable {
services.vaultwarden.enable = true;
user.extraGroups = [ "vaultwarden" ];
services.fail2ban.jails.vaultwarden = ''
enabled = true
filter = vaultwarden
port = 80,443,8002
maxretry = 5
'';
};
}