diff --git a/system/server/index/index.html b/system/server/index/index.html
index 5e12672..6c24648 100644
--- a/system/server/index/index.html
+++ b/system/server/index/index.html
@@ -76,7 +76,8 @@
Hello! I'm jsw , a frontend web developer with experience in Svelte + TS , Nix(OS) and currently learning Rust . This site is still under development, so please bear with me. In the meantime, feel free to reach out via email or explore my projects on GitHub.
diff --git a/system/server/nextcloud.nix b/system/server/nextcloud.nix
index 3831684..a4c93d3 100644
--- a/system/server/nextcloud.nix
+++ b/system/server/nextcloud.nix
@@ -8,6 +8,7 @@
host = "cloud.jsw.tf";
nginxRoot = config.services.nginx.virtualHosts.${host}.root;
fpmSocket = config.services.phpfpm.pools.nextcloud.socket;
+ imaginaryPort = 9005;
in {
config = lib.mkIf server {
users.groups.nextcloud.members = ["nextcloud" "caddy"];
@@ -34,10 +35,15 @@ in {
calendar
contacts
mail
- notes
- tasks
user_oidc
+ phonetrack
;
+ external = pkgs.fetchNextcloudApp {
+ # https://github.com/helsinki-systems/nc4nix/blob/main/31.json #NOTE: 31.json is version.
+ hash = "sha256-xVrnahqgXIXjk9gukrFgpwZiT2poUIDl83xV8hXPisw=";
+ url = "https://github.com/nextcloud-releases/external/releases/download/v6.0.2/external-v6.0.2.tar.gz";
+ license = "agpl3Plus";
+ };
};
settings = {
@@ -54,14 +60,28 @@ in {
"OC\\Preview\\TXT"
"OC\\Preview\\XBitmap"
"OC\\Preview\\HEIC"
+ "OC\Preview\Imaginary"
];
+ preview_imaginary_url = "http://localhost:${builtins.toString imaginaryPort}";
+ preview_format = "webp";
+
+ trusted_proxies = ["127.0.0.1"];
+ maintenance_window_start = 1;
+ log_type = "file";
};
+ phpOptions."opcache.interned_strings_buffer" = 24;
config = {
adminuser = "jsw-admin";
adminpassFile = "${config.age.secrets.nextcloud-admin-pass.path}";
dbtype = "pgsql";
};
};
+ imaginary = {
+ enable = true;
+ port = imaginaryPort;
+ address = "localhost";
+ settings.returnSize = true;
+ };
nginx.enable = lib.mkForce false;
phpfpm.pools.nextcloud.settings = let