feat(services): WIP Traefik service base

This commit is contained in:
Jo 2024-09-21 00:08:32 +02:00
parent 16dae5bcd5
commit b23bddaf71
2 changed files with 101 additions and 3 deletions

View file

@ -0,0 +1,20 @@
{
namespace,
hostname,
config,
...
}: 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 = hostname;
# Todo: continue writing vaultwarden config
};
};
}