mirror of
https://github.com/tuxdotrs/tawm.git
synced 2025-07-06 21:16:35 +05:30
29 lines
491 B
Nix
29 lines
491 B
Nix
{
|
|
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";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|