puzzlevision/modules/nixos/services/vaultwarden/default.nix
Jo 3cd04be672 feat(modules): add new GTK styles to Catppuccin config
fix(modules): update vaultwarden service hostname usage

feat(flake): add sops-nix to flake

feat: add .sops.yaml base, not quite ready just yet
2024-09-22 03:11:14 +02:00

21 lines
489 B
Nix

{
lib,
namespace,
config,
host,
...
}: with lib; with lib.${namespace};
let
cfg = config.${namespace}.services.vaultwarden;
in {
options.${namespace}.services.vaultwarden = { enable = mkEnableOption "Enable the Vaultwarden service."; };
config = mkIf cfg.enable {
virtualisation.oci-containers.containers.vaultwarden = {
image = "vaultwarden/server";
autoStart = true;
hostname = host;
# Todo: continue writing vaultwarden config
};
};
}