initial server config

This commit is contained in:
Daniel Kauss Serna 2026-02-03 13:22:21 +01:00
commit 8f6d63909a
10 changed files with 313 additions and 0 deletions

22
services/vaultwarden.nix Normal file
View file

@ -0,0 +1,22 @@
{ config, pkgs, ... }:
{
services.vaultwarden = {
enable = true;
config = {
DOMAIN = "https://passwords.danielk.me";
SIGNUPS_ALLOWED = false;
ROCKET_ADDRESS = "127.0.0.1";
ROCKET_PORT = 8222;
};
};
services.caddy.virtualHosts."passwords.danielk.me" = {
extraConfig = ''
reverse_proxy 127.0.0.1:8222
'';
};
# environment.persistence."/persistent".directories = [ "/var/lib/bitwarden_rs" ];
}