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

@ -4,7 +4,6 @@
}:
{
config,
pkgs,
lib,
inputs,
system,

View file

@ -69,6 +69,11 @@ in
];
};
systemd.services."phpfpm-nextcloud".postStart = ''
${config.services.nextcloud.occ}/bin/nextcloud-occ config:app:set recognize node_binary --value '${lib.getExe pkgs.nodejs_22}'
${config.services.nextcloud.occ}/bin/nextcloud-occ config:app:set recognize tensorflow.purejs --value 'true'
'';
services.nextcloud = {
enable = true;
package = nextcloudPkg;
@ -88,9 +93,10 @@ in
whiteboard
user_oidc
memories
recognize # May break
;
inherit recognize;
# inherit recognize;
camerarawpreviews = pkgs.fetchNextcloudApp {
url = "https://github.com/ariselseng/camerarawpreviews/releases/download/v0.8.8/camerarawpreviews_nextcloud.tar.gz";

View file

@ -0,0 +1,23 @@
{
fqdn ? null,
https ? false,
envFile ? null,
}:
{ config, lib, ... }:
let
inherit (lib) optionalString mkIf;
finalFqdn = if fqdn == null then config.networking.fqdn else fqdn;
in
{
services.opencloud = {
enable = true;
url = "http${optionalString https "s"}://${finalFqdn}";
environmentFile = envFile;
};
services.nginx.virtualHosts."${finalFqdn}" = mkIf https {
enableACME = true;
forceSSL = true;
locations."/".proxyPass = "http://127.0.0.1:${toString config.services.opencloud.port}";
};
}

View file

@ -84,6 +84,11 @@ in
tls.implicit = true;
proxy_protocol = true;
};
jmap = {
bind = [ "10.0.0.130:31004" ];
protocol = "http";
proxy_protocol = true;
};
management = {
protocol = "http";
bind = [
@ -135,6 +140,7 @@ in
virtualHosts = {
"mail.${domain}" = {
locations."/".proxyPass = "http://127.0.0.1:8080";
locations."/jmap".proxyPass = "http://127.0.0.1:31004";
enableACME = true;
forceSSL = true;
};