From e52712087914b1de37e6badf9aefa45143cba04c Mon Sep 17 00:00:00 2001 From: teutat3s Date: Tue, 23 Jan 2024 22:17:45 +0100 Subject: [PATCH 1/3] chore: bump flake inputs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit • Updated input 'element-themes': 'github:aaronraimist/element-themes/b1dbe27acee74cebe180538ef215208a1c26dc02' (2023-07-29) → 'github:aaronraimist/element-themes/fec249ddecfacfbbe6cfaf6a48261d00270b6abe' (2024-01-14) • Updated input 'home-manager': 'github:nix-community/home-manager/5f0ab0eedc6ede69beb8f45561ffefa54edc6e65' (2024-01-11) → 'github:nix-community/home-manager/10cd9c53115061aa6a0a90aad0b0dde6a999cdb9' (2024-01-19) • Updated input 'nix-darwin': 'github:lnl7/nix-darwin/0dd382b70c351f528561f71a0a7df82c9d2be9a4' (2024-01-03) → 'github:lnl7/nix-darwin/1e706ef323de76236eb183d7784f3bd57255ec0b' (2024-01-22) • Updated input 'nixos-flake': 'github:srid/nixos-flake/4e422edf6b511f8e214b392cf1a0d4707a0399a4' (2023-12-09) → 'github:srid/nixos-flake/244072b1f9088833627046d703d7973b90fe7843' (2024-01-23) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/3dc440faeee9e889fe2d1b4d25ad0f430d449356' (2024-01-10) → 'github:nixos/nixpkgs/d7f206b723e42edb09d9d753020a84b3061a79d8' (2024-01-22) • Updated input 'unstable': 'github:nixos/nixpkgs/317484b1ead87b9c1b8ac5261a8d2dd748a0492d' (2024-01-08) → 'github:nixos/nixpkgs/612f97239e2cc474c13c9dafa0df378058c5ad8d' (2024-01-21) --- flake.lock | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/flake.lock b/flake.lock index 3e99558..fda6997 100644 --- a/flake.lock +++ b/flake.lock @@ -74,11 +74,11 @@ "element-themes": { "flake": false, "locked": { - "lastModified": 1690602100, - "narHash": "sha256-fc/YOx5Py0iOBg2Aw3qjl0SHm+byIjuKdU1b/3q0FXs=", + "lastModified": 1705202375, + "narHash": "sha256-YizGYCik8MYKqsBWCBhFBofSpIsML1ryEdRxOVEjFUw=", "owner": "aaronraimist", "repo": "element-themes", - "rev": "b1dbe27acee74cebe180538ef215208a1c26dc02", + "rev": "fec249ddecfacfbbe6cfaf6a48261d00270b6abe", "type": "github" }, "original": { @@ -162,11 +162,11 @@ ] }, "locked": { - "lastModified": 1704980875, - "narHash": "sha256-IPZmMjk5f4TBbEpzUFBc3OC1W6OwDNEXk2w/0uVXX1o=", + "lastModified": 1705659542, + "narHash": "sha256-WA3xVfAk1AYmFdwghT7mt/erYpsU6JPu9mdTEP/e9HQ=", "owner": "nix-community", "repo": "home-manager", - "rev": "5f0ab0eedc6ede69beb8f45561ffefa54edc6e65", + "rev": "10cd9c53115061aa6a0a90aad0b0dde6a999cdb9", "type": "github" }, "original": { @@ -206,11 +206,11 @@ ] }, "locked": { - "lastModified": 1704277720, - "narHash": "sha256-meAKNgmh3goankLGWqqpw73pm9IvXjEENJloF0coskE=", + "lastModified": 1705915768, + "narHash": "sha256-+Jlz8OAqkOwJlioac9wtpsCnjgGYUhvLpgJR/5tP9po=", "owner": "lnl7", "repo": "nix-darwin", - "rev": "0dd382b70c351f528561f71a0a7df82c9d2be9a4", + "rev": "1e706ef323de76236eb183d7784f3bd57255ec0b", "type": "github" }, "original": { @@ -222,11 +222,11 @@ }, "nixos-flake": { "locked": { - "lastModified": 1702145288, - "narHash": "sha256-apVeRT0kOnDejwwBwbwNccm+qq1l6+qUOiRKE0vK5qk=", + "lastModified": 1705990839, + "narHash": "sha256-Gb0bvp7BiHBn2PkssT4CiBhD7lVWqSHEBfiai/RFfSQ=", "owner": "srid", "repo": "nixos-flake", - "rev": "4e422edf6b511f8e214b392cf1a0d4707a0399a4", + "rev": "244072b1f9088833627046d703d7973b90fe7843", "type": "github" }, "original": { @@ -237,11 +237,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1704874635, - "narHash": "sha256-YWuCrtsty5vVZvu+7BchAxmcYzTMfolSPP5io8+WYCg=", + "lastModified": 1705916986, + "narHash": "sha256-iBpfltu6QvN4xMpen6jGGEb6jOqmmVQKUrXdOJ32u8w=", "owner": "nixos", "repo": "nixpkgs", - "rev": "3dc440faeee9e889fe2d1b4d25ad0f430d449356", + "rev": "d7f206b723e42edb09d9d753020a84b3061a79d8", "type": "github" }, "original": { @@ -387,11 +387,11 @@ }, "unstable": { "locked": { - "lastModified": 1704722960, - "narHash": "sha256-mKGJ3sPsT6//s+Knglai5YflJUF2DGj7Ai6Ynopz0kI=", + "lastModified": 1705856552, + "narHash": "sha256-JXfnuEf5Yd6bhMs/uvM67/joxYKoysyE3M2k6T3eWbg=", "owner": "nixos", "repo": "nixpkgs", - "rev": "317484b1ead87b9c1b8ac5261a8d2dd748a0492d", + "rev": "612f97239e2cc474c13c9dafa0df378058c5ad8d", "type": "github" }, "original": { From be668fbb17fccf648c983fad9b2bba152c1effd5 Mon Sep 17 00:00:00 2001 From: teutat3s Date: Tue, 23 Jan 2024 22:18:58 +0100 Subject: [PATCH 2/3] fix: nextcloud likes interned strings buffer > 8 7cf6f5151661373cb3cbeca846d8537aff88fb02 made a wrong assumption --- hosts/nachtigall/apps/nextcloud.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hosts/nachtigall/apps/nextcloud.nix b/hosts/nachtigall/apps/nextcloud.nix index 7a026f8..d851704 100644 --- a/hosts/nachtigall/apps/nextcloud.nix +++ b/hosts/nachtigall/apps/nextcloud.nix @@ -108,6 +108,10 @@ simpleSignUpLink.shown = false; }; + phpOptions = { + "opcache.interned_strings_buffer" = "23"; + }; + # Calculated with 4GiB RAM, 80MiB process size available on # https://spot13.com/pmcalculator/ poolSettings = { From b3b3725c9f054ad5e1dd3bbfa4e73147ce60383a Mon Sep 17 00:00:00 2001 From: teutat3s Date: Thu, 25 Jan 2024 19:06:24 +0100 Subject: [PATCH 3/3] feat: php opcache tuning for nextcloud https://docs.nextcloud.com/server/latest/admin_manual/installation/server_tuning.html#:~:text=opcache.jit%20%3D%201255%20opcache.jit_buffer_size%20%3D%20128m --- hosts/nachtigall/apps/nextcloud.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hosts/nachtigall/apps/nextcloud.nix b/hosts/nachtigall/apps/nextcloud.nix index d851704..71b3df3 100644 --- a/hosts/nachtigall/apps/nextcloud.nix +++ b/hosts/nachtigall/apps/nextcloud.nix @@ -110,6 +110,9 @@ phpOptions = { "opcache.interned_strings_buffer" = "23"; + # https://docs.nextcloud.com/server/latest/admin_manual/installation/server_tuning.html#:~:text=opcache.jit%20%3D%201255%20opcache.jit_buffer_size%20%3D%20128m + "opcache.jit" = "1255"; + "opcache.jit_buffer_size" = "128M"; }; # Calculated with 4GiB RAM, 80MiB process size available on