Remove the features directory

This commit is contained in:
Oliver Davies 2025-03-06 23:46:37 +00:00
parent 6585022138
commit 0f31678c52
57 changed files with 6 additions and 8 deletions

View file

@ -0,0 +1,31 @@
{ config, lib, ... }:
with lib;
{
options.nixosModules.vaultwarden.enable = mkEnableOption "Enable vaultwarden";
config = mkIf config.nixosModules.vaultwarden.enable {
services = {
vaultwarden = {
enable = true;
config = {
DOMAIN = "https://vaultwarden.oliverdavies.uk";
# TODO: check registrations are disabled.
SIGNUPS_ALLOWED = false;
ROCKET_ADDRESS = "127.0.0.1";
ROCKET_PORT = 8222;
};
};
caddy.virtualHosts."vaultwarden.oliverdavies.uk" = {
useACMEHost = "oliverdavies.uk";
extraConfig = "reverse_proxy localhost:${toString config.services.vaultwarden.config.ROCKET_PORT}";
};
};
};
}