mirror of
https://github.com/Jokiller230/puzzlevision.git
synced 2025-01-19 18:33:06 +01:00
Jo
3cd04be672
fix(modules): update vaultwarden service hostname usage feat(flake): add sops-nix to flake feat: add .sops.yaml base, not quite ready just yet
21 lines
489 B
Nix
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
|
|
};
|
|
};
|
|
}
|