feat: add change wallpaper shortcut to yazi

This commit is contained in:
danny 2025-11-10 15:21:18 +08:00
parent d1f25b377f
commit c45ba82b90
18 changed files with 188 additions and 21 deletions

View file

@ -0,0 +1,35 @@
{
fqdn ? null,
}:
{ config, ... }:
let
port = 31004;
finalFqdn = if fqdn == null then config.networking.fqdn else fqdn;
in
{
systemConf.security.allowedDomains = [
"ntfy.sh"
];
services.ntfy-sh = {
enable = true;
settings = {
listen-http = ":${toString port}";
base-url = "https://${finalFqdn}";
upstream-base-url = "https://ntfy.sh";
behind-proxy = true;
proxy-trusted-hosts = "127.0.0.1";
};
};
services.nginx.virtualHosts = {
"${finalFqdn}" = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyWebsockets = true;
proxyPass = "http://127.0.0.1:${toString port}";
};
};
};
}