feat: add silverbullet

This commit is contained in:
tux
2024-12-28 18:28:05 +05:30
parent 9d1b02d3fb
commit c6b10e29ac
3 changed files with 37 additions and 2 deletions

View File

@ -0,0 +1,28 @@
{
lib,
config,
...
}: {
services = {
silverbullet = {
enable = true;
listenPort = 9876;
envFile = config.sops.secrets.silver_bullet.path;
};
nginx = {
enable = lib.mkForce true;
virtualHosts = {
"notes.tux.rs" = {
forceSSL = true;
useACMEHost = "tux.rs";
locations = {
"/" = {
proxyPass = "http://localhost:9876";
};
};
};
};
};
};
}