bea1e6039f
Note: not the actual initial commit. I swear I will stop repeatedly force pushing to this single commit eventually ok.
22 lines
385 B
Nix
22 lines
385 B
Nix
{ config, ... }:
|
|
|
|
let
|
|
cfg = config.services.syncyomi;
|
|
baseUrl = "/syncyomi/";
|
|
in {
|
|
services = {
|
|
nginx = {
|
|
virtualHosts."sync.eriedaberrie.me" = {
|
|
locations.${baseUrl}.proxyPass = "http://127.0.0.1:${builtins.toString cfg.settings.port}/";
|
|
};
|
|
};
|
|
|
|
syncyomi = {
|
|
enable = true;
|
|
settings = {
|
|
inherit baseUrl;
|
|
};
|
|
};
|
|
};
|
|
}
|