helm/modules/services/bitwarden.nix

16 lines
308 B
Nix
Raw Normal View History

2020-12-18 20:42:52 -08:00
{ options, config, lib, pkgs, ... }:
with lib;
with lib.my;
let cfg = config.modules.services.bitwarden;
in {
options.modules.services.bitwarden = {
enable = mkBoolOpt false;
};
config = mkIf cfg.enable {
2020-12-19 05:05:05 -08:00
services.bitwarden_rs.enable = true;
user.extraGroups = [ "bitwarden_rs" ];
2020-12-18 20:42:52 -08:00
};
}