Commit graph

2380 commits

Author SHA1 Message Date
provokateurin fa2741c80f
nextcloud32: init at 32.0.0
Subset of the original commit, without the breaking changes (i.e.
changes of defaults).

(cherry picked from commit 34a7111f89)
2025-10-27 11:31:57 +01:00
sadorowo 2af71e0958 fix: add missing lib.escapeShellArg
(cherry picked from commit 63da2caa10)
2025-10-21 15:21:23 +00:00
Franek 21f0df1dab chore: remove dead code
(cherry picked from commit 3e5de98fc8)
2025-10-21 15:21:23 +00:00
Franek 5dcfeb4692 fix: use JSON and then convert to YAML for backwards compatibility
(cherry picked from commit e9b91d0f2d)
2025-10-21 15:21:23 +00:00
Franek 06a0338fbc chore: reformat file properly
(cherry picked from commit 3fd6717c22)
2025-10-21 15:21:23 +00:00
Franek 5d7a4ed3d9 chore: reformat and fix typo
(cherry picked from commit 59f3789f45)
2025-10-21 15:21:23 +00:00
sadorowo a449de090f invidious: use YAML configuration by default (#448476)
(cherry picked from commit a22dc98a36)
2025-10-21 15:21:23 +00:00
Philip Taron 7e297ddff4
[25.05] fetchNextcloudApp: add sha512 (#448860) 2025-10-10 23:46:02 +00:00
dish c572db3762 nixos/pixelfed: remove X-XSS-Protection header
not recommended to set it, per OWASP, as it can actually introduce
security issues

https://owasp.org/www-project-secure-headers/#x-xss-protection
(cherry picked from commit 47a0293617)
2025-10-07 23:31:24 +00:00
staticdev a79798ac63 fetchNextcloudApp: add sha512
(cherry picked from commit 2196fed2b6)
2025-10-05 15:51:40 +02:00
Wolfgang Walther 5cbdb94f3a
treewide: remove redundant parentheses
Auto-fixed by nixf-diagnose.

(cherry picked from commit 91a8fee3aa)
2025-10-05 12:59:25 +02:00
Wolfgang Walther 6c1e6f90d3
treewide: remove unused rec
Auto-fix by nixf-diagnose.

(cherry picked from commit 90e7159c55)
2025-10-05 12:38:23 +02:00
Alexander Sieg db3124c7c9
nixos/outline: ajust for deprecation of MAXIMUM_IMPORT_SIZE
(cherry picked from commit 5daa3ed068)
2025-09-27 14:13:24 +02:00
dotlambda f4d85a4eae
[25.05] nixos/immich: add support for VectorChord (#443145) 2025-09-23 05:02:18 -07:00
teutat3s 9617c56e45 nixos/invoiceplane: block access to ipconfig.php
Upstream uses this method to protect sensitive data in their example
config: https://github.com/InvoicePlane/InvoicePlane/blob/v1.6.3/ipconfig.php.example#L1

(cherry picked from commit c7fb59251c)
2025-09-15 19:57:52 +00:00
Sefa Eyeoglu 9e3a0154d3
nixos/immich: add VectorChord migration docs
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
(cherry picked from commit a9c17c34b1)
2025-09-15 16:07:52 +01:00
Sefa Eyeoglu 000dc78159
nixos/immich: add enableVectors option
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
(cherry picked from commit 0b93bf6c22)
2025-09-15 16:07:52 +01:00
Sefa Eyeoglu 952ad309b6
nixos/immich: add enableVectorChord option
This enables VectorChord in the database (currently) alongside
pgvecto.rs. Note that VectorChord requires pgvector, which is enabled as
well by this option.

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
(cherry picked from commit fd1994a8b7)
2025-09-15 16:07:51 +01:00
Sefa Eyeoglu 6210030914
nixos/immich: only start after reaching postgresql.service
Without this dependency, we may run into a race condition, especially in
our tests.

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
(cherry picked from commit 1a24457782)
2025-09-15 16:07:45 +01:00
Robert Schütz b7338ccd18
nixos/nextcloud: remove X-XSS-Protection
see https://github.com/nextcloud/server/pull/53476

(cherry picked from commit 06c99c29c9)
2025-09-13 14:21:44 -04:00
provokateurin 9a0dee2e9c nixos/nextcloud: Pass OC_PASS and NC_PASS environment variables to nextcloud-occ
(cherry picked from commit ba24e7fa23)
2025-09-03 22:36:44 +00:00
dish 70a4352089
[Backport release-25.05] nixos/grocy: don't set X-XSS-Protection anymore (#439543) 2025-09-03 12:47:39 -04:00
Robert Helgesson 908dbaf1e7 nixos/grav: remove X-XSS-Protection
See <https://github.com/NixOS/nixpkgs/issues/438800>.

(cherry picked from commit 90c505624b)
2025-09-02 23:25:35 +02:00
Robert Helgesson 4b5e614d94 nixos/grav: use PHP 8.3
The stable version of Grav is not compatible with later versions of
PHP.

(cherry picked from commit 22617bd181)
2025-09-02 23:25:35 +02:00
dish 8574caa202
[Backport release-25.05] nixos/kanboard: remove X-XSS-Protection (#439324) 2025-09-02 15:08:11 -04:00
Diogo Correia c85c6554aa nixos/grocy: don't set X-XSS-Protection anymore
Part of #438800.

The OWASP recommentation[1] is:

> The X-XSS-Protection header has been deprecated by modern browsers
> and its use can introduce additional security issues on the client
> side. As such, it is recommended to set the header as X-XSS-Protection: 0
> in order to disable the XSS Auditor, and not allow it to take the default
> behavior of the browser handling the response. Please use
> Content-Security-Policy instead.

[1] https://owasp.org/www-project-secure-headers/#x-xss-protection

(cherry picked from commit c129255508)
2025-09-02 13:03:41 +00:00
Diogo Correia d8c2bd99a8 {nixos/,}grocy: add diogotcorreia as maintainer
(cherry picked from commit 80f6d36543)
2025-09-02 13:03:41 +00:00
Morgan Jones cf39b1d157
[Backport release-25.05] mattermost: charset fixes (#439044) 2025-09-01 22:52:42 +00:00
Zexin Yuan 4398ea964b nixos/kanboard: remove X-XSS-Protection
(cherry picked from commit 47fcf23026)
2025-09-01 20:51:01 +00:00
Defelo 120cf68ade nixos/glitchtip: add stateDir option
(cherry picked from commit 6ef10ab044)
2025-09-01 15:54:37 +00:00
Defelo 0cdcf4e6fb nixos/glitchtip: fix sourcemap uploads
(cherry picked from commit 95968f2f73)
2025-09-01 15:54:37 +00:00
Morgan Jones e15890c3fe nixos/mattermost: remove fallback charset for MySQL
This was causing issues on newer versions of MariaDB (breaking
NixOS tests) like:

```
Error 1064 (42000): You have an error in your SQL syntax;
check the manual that corresponds to your MariaDB server version
for the right syntax to use near '%2Cutf8' at line 1
```

Since this is simply a fallback character set and all supported versions
of MariaDB support utf8mb4, delete the fallback.

This change should be fully compatible with existing deployments.

(cherry picked from commit 6cc8a8cdb5)
2025-09-01 02:19:40 +00:00
Jonas Heinrich a0c2500457 nixos/invoiceplane: Update patch
(cherry picked from commit aa06ffc4c3)
2025-08-20 14:49:48 +00:00
Defelo 5e0dafbe09 zipline: 4.2.1 -> 4.2.3
Changelog: https://github.com/diced/zipline/releases/tag/v4.2.2
Diff: https://github.com/diced/zipline/compare/v4.2.1...v4.2.2

Changelog: https://github.com/diced/zipline/releases/tag/v4.2.3
Diff: https://github.com/diced/zipline/compare/v4.2.2...v4.2.3
(cherry picked from commit ed4ce19544)
2025-08-15 10:55:14 +00:00
Wolfgang Walther 0f9967d795
[Backport release-25.05] nixos/freshrss: fix loading extensions' static content (#431314) 2025-08-13 20:26:43 +00:00
Wolfgang Walther 9e0d46b18f
[Backport release-25.05] peertube: remove spawn (#427195) 2025-08-09 16:59:42 +00:00
Matt Christ 4714abbe16
nixos/freshrss: fix loading extensions' static content
Before this change, the THIRDPARTY_EXTENSIONS_PATH would end up with a
double-slash in the path, which was breaking FreshRSS's is_valid_path
detection.

(cherry picked from commit 637fc36529)
2025-08-06 20:18:21 -04:00
Defelo 17847f675a
nixos/go-httpbin: init module
(cherry picked from commit 224dc30d39)
2025-07-29 20:04:55 +05:30
Wolfgang Walther aefcb0d50d
treewide: run nixfmt 1.0.0 2025-07-24 14:58:18 +02:00
Wolfgang Walther a46262ae77
treewide: run treefmt with mdcr/nixfmt 2025-07-24 14:58:15 +02:00
Wolfgang Walther ad1379b5e0
treewide: fix syntax errors in nix code blocks
Fixes all code blocks with "nix" language in markdown files for syntax
errors to be able to run nixfmt in the next step.

(cherry picked from commit 6c47e7d5da)
2025-07-24 14:46:05 +02:00
liberodark 04f62c8c0a peertube: remove spawn
(cherry picked from commit 1c1d6a725a)
2025-07-21 16:48:32 +00:00
Defelo 6642acbb21
nixos/chhoto-url: init module
(cherry picked from commit 55e6f26bff)
2025-07-18 15:18:38 +02:00
Jonas Heinrich fed81c9355 nixos/froide-govplan: Increase startup timeout
(cherry picked from commit d6e3516544)
2025-07-15 10:17:34 +02:00
Jonas Heinrich ab6ae92101 nixos/froide-govplan: Fix PYTHONPATH
(cherry picked from commit cd85e93ff7)
2025-07-15 10:16:47 +02:00
liberodark c41140025f nixos/peertube: fix crash when import video
(cherry picked from commit 481a3f2549)
2025-07-10 08:01:20 +00:00
Maximilian Bosch c03e1f27aa
Merge: [Backport release-25.05] nixos/nextcloud: add assertion explaining to set dbtype (#422645) 2025-07-08 16:37:08 +02:00
Maximilian Bosch f147221e21 nixos/nextcloud: document nextcloud-occ command
It's not clear how to use this command in other systemd units, this
section gives a recommendation.

I realized that there's no explicit mention of `nextcloud-occ` in the
first place, so I wrote some introductory sentences as well.

(cherry picked from commit 5a6f0a43ae)
2025-07-05 16:46:23 +00:00
Dominique Martinet f015b0cc5a nixos/nextcloud: add assertion explaining to set dbtype
Since 25.05 dbtype no longer defaults to sqlite and this yields an error
that is understandable enough but not easy to properly address.

Add an assert that is more explicit.

Before:
```
       error: The option `nodes.nextcloud.services.nextcloud.config.dbtype' was accessed but has no value defined. Try setting the option.
```

After:
```
       error:
       Failed assertions:
       - `services.nextcloud.config.dbtype` must be set explicitly (pgsql, mysql, or sqlite)

       Before 25.05, it used to default to sqlite but that is not recommended by upstream.
       Either set it to sqlite as it used to be, or convert to another type as described
       in the official db conversion page:
       https://docs.nextcloud.com/server/latest/admin_manual/configuration_database/db_conversion.html
```

Link: https://github.com/NixOS/nixpkgs/pull/369242#issuecomment-3036296243
(cherry picked from commit 78a20758e0)
2025-07-05 08:00:57 +00:00
teutat3s 51c458590c
nixos/nextcloud: sync nginx config with upstream
Upstream changes were checked by checking out the stable31 branch of the
https://github.com/nextcloud/documentation and comparing:

git diff c1c9b0a072537544769fdd6062989a631d4fb17c admin_manual/installation/nginx-root.conf.sample

Notably, this adds the text/javascript and application/wasm mime types to the list of
gzip'ed mime types, which improves nextcloud loading in our testing.

Also adds webp support.

(cherry picked from commit 0c7a8d5255)
2025-06-26 15:09:48 +02:00