355 Commits
Author SHA1 Message Date
052cec991b nextcloud34: init at 34.0.1
Co-authored-by: Jonas Heinrich <757752+onny@users.noreply.github.com>
Co-Authored-By: Joseph Price <joe@pricey.uk>
2026-07-10 16:49:27 +02:00
Octavia Togami da9d059017 nixos/nextcloud: use --pipe for nextcloud-occ systemd-run
This makes the command function properly when run via other comamnds,
e.g. GNU `parallel`.
2026-03-28 12:19:41 -07:00
Silvan Mosberger b513ab8192 Reapply "ci: module maintainer review requests; nixos/modules: init meta.teams"
This reverts commit 2cc2e0225f.
2026-03-13 16:53:28 +01:00
Silvan MosbergerandGitHub 2cc2e0225f Revert "ci: module maintainer review requests; nixos/modules: init meta.teams" 2026-03-06 08:41:24 +01:00
Silvan Mosberger dbb164c759 nixos/modules: Use meta.teams over meta.maintainers = lib.teams.*.members
This allows getting the team itself requested for a review instead of
the individual members
2026-03-02 10:59:09 +01:00
Maximilian Bosch 8bb083f55b nixos/nextcloud: restore using ExecCondition
Since systemd 259 it's possible to access service credentials from
`ExecCondition`.
2026-03-01 14:19:35 +01:00
Jonas HeinrichandMaximilian Bosch 10965a1da8 nixos/nextcloud: drop 31 2026-02-21 17:22:36 +01:00
Jonas HeinrichandMaximilian Bosch 7161f7a6fe nixos/nextcloud: init 33 2026-02-21 17:22:36 +01:00
provokateurin f88feb3e68 nixos/nextcloud: Apply secrets after default values of settings 2026-02-05 18:24:21 +01:00
provokateurin 2b2f9deedb nixos/nextcloud: Use certificates bundle from path 2026-01-20 11:30:25 +01:00
NAHO a2ed7e8d88 nixos: remove optional builtins prefixes from prelude functions
Remove optional builtins prefixes from prelude functions by running:

    builtins=(
      abort
      baseNameOf
      break
      derivation
      derivationStrict
      dirOf
      false
      fetchGit
      fetchMercurial
      fetchTarball
      fetchTree
      fromTOML
      import
      isNull
      map
      null
      placeholder
      removeAttrs
      scopedImport
      throw
      toString
      true
    )

    fd \
      --exclude doc/manual/release-notes \
      --type file \
      . \
      nixos \
      --exec-batch sed --in-place --regexp-extended "
        s/\<builtins\.($(
          printf '%s\n' "${builtins[@]}" |
            paste --delimiter '|' --serial -
        ))\>/\1/g
      "

    nix fmt
2026-01-15 16:07:55 +01:00
AleksanaandGitHub 73df223ad2 nixos/nextcloud: Fix invalid variable name in nextcloud-config.php (#465660) 2025-12-06 13:55:09 +00:00
provokateurin 178b07716d nixos/nextcloud: Fix services.nextcloud.settings.mail_smtpstreamoptions option type
The option is not a list, but an associative array: https://docs.nextcloud.com/server/stable/admin_manual/configuration_server/email_configuration.html#how-can-i-send-mail-using-self-signed-certificates-or-use-starttls-with-self-signed-certificates
2025-11-29 16:56:01 +01:00
Manuel Vögele 15d2df41ca nixos/nextcloud: Fix invalid variable name in nextcloud-config.php
The variable $file does not exist in nix_read_secret_and_decode_json_file.
This PR updates the code to use the parameter $credential_name instead.
2025-11-27 17:05:13 +01:00
provokateurin 2718336490 nixos/nextcloud: Add services.nextcloud.settings.mail_* options 2025-11-21 15:48:24 +01:00
kraftnixandprovokateurin cfcd8678e5 nixos/nextcloud: add secrets option
Uses existing `nix_read_secret` and LoadCredential to read contents of a
file into an entry in `config.php`
2025-11-21 15:33:48 +01:00
Maximilian BoschandGitHub 64f4b1d4f2 nixos/nextcloud: Add services.nextcloud.imaginary.enable option (#460300) 2025-11-21 13:13:19 +00:00
provokateurin 7559f30acc nixos/nextcloud: Add services.nextcloud.imaginary.enable option 2025-11-11 22:55:03 +01:00
provokateurin 5e11f80a1b nixos/nextcloud: Set services.nextcloud.poolSettings."pm.status_path" by default
For use with services.prometheus.exporters.php-fpm it is necessary to have the pm.status_path set.
2025-11-11 13:11:21 +01:00
6543 8072daa07e nextcloud: expose occ binary via $OCC_BIN in nextcloud-setup service script 2025-11-04 13:48:41 +01:00
Maximilian BoschandGitHub c3615b0f5d nixos/nextcloud: Allow disabling initial admin user creation on Nextcloud >= 32 (#418378) 2025-10-27 11:24:44 +00:00
provokateurin e4629f0dda nixos/nextcloud: Fix fetchNextcloudApp example 2025-10-23 09:52:20 +02:00
Maximilian BoschandGitHub b4fd706dd8 nixos/nextcloud: prevent nextcloud-occ arguments being parsed by wrapper (#451187) 2025-10-22 11:13:25 +00:00
provokateurin e739c5d78d nixos/nextcloud: Allow disabling initial admin user creation on Nextcloud >= 32
With https://github.com/nextcloud/server/pull/53212 it is not longer necessary to specify a username and password for an initial admin account during installation.
2025-10-13 20:47:01 +02:00
Maximilian Bosch ddb9127071 nixos/nextcloud: remove ancient stateVersion conditions 2025-10-12 19:26:07 +02:00
hotburger 7dcdee8d0a nixos/nextcloud: prevent nextcloud-occ arguments being parsed by wrapper 2025-10-11 17:35:03 -07:00
Maximilian BoschandGitHub 285ea04d23 nextcloud32: init at 32.0.0 (#446632) 2025-10-09 18:00:09 +00:00
teutat3s ed6fed3410 nixos/nextcloud: recommended nginx headers should
not be optional, because upstream recommends them
https://docs.nextcloud.com/server/stable/admin_manual/installation/harden_server.html#serve-security-related-headers-by-the-web-server
2025-10-09 10:09:42 +02:00
teutat3s c794451fee nixos/nextcloud: avoid duplicate X-Robots-Tag header
We already set this header in nginx, and a duplicate header can lead to
issues, like: https://github.com/nextcloud/notes-android/issues/2848
2025-10-09 09:42:29 +02:00
provokateurin f8d0f08acc nixos/nextcloud: Use php84 by default
php84 is supported by nextcloud31 and nextcloud32 and brings some additional performance improvements in nextcloud32.
2025-10-07 09:45:28 +02:00
provokateurin 34a7111f89 nextcloud32: init at 32.0.0 2025-10-07 09:45:28 +02:00
Wolfgang Walther 91a8fee3aa treewide: remove redundant parentheses
Auto-fixed by nixf-diagnose.
2025-10-05 10:52:03 +02:00
provokateurin 3afd6ec50d nextcloud30: drop 2025-09-29 16:03:32 +02:00
provokateurin ba24e7fa23 nixos/nextcloud: Pass OC_PASS and NC_PASS environment variables to nextcloud-occ 2025-09-03 08:54:48 +02:00
Robert SchützandPascal Bach 06c99c29c9 nixos/nextcloud: remove X-XSS-Protection
see https://github.com/nextcloud/server/pull/53476
2025-08-31 10:14:01 +02:00
staticdev 2196fed2b6 fetchNextcloudApp: add sha512 2025-08-26 22:25:48 +02:00
6543 f7611cad51 nixos/nextcloud: unify usage of lib functions 2025-08-11 18:49:21 +02:00
Maximilian BoschandGitHub 3e41a080eb Merge: nixos/nextcloud: configure redis by default (#421813) 2025-08-07 17:27:21 +02:00
Sandro Jäckel 9e2d007b94 nixos/nextcloud: configure redis by default 2025-07-26 23:31:35 +02:00
Sandro Jäckel 58def163c0 nixos/nextcloud: fix eval 2025-07-26 23:22:15 +02:00
6543 b6088b0d8e nixos/nextcloud: remove with lib usage 2025-07-24 17:00:10 +02:00
Maximilian BoschandGitHub 5d30429bbf Merge: nixos/nextcloud: move phpPackage default into option (#423792) 2025-07-24 16:31:49 +02:00
Wolfgang Walther 5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
Rémi NICOLEandGitHub 16bf4a02fa nixos/nextcloud: fix module maintainers (#427548) 2025-07-23 10:40:37 +08:00
Sandro Jäckel 81edb3c986 nixos/nextcloud: move phpPackage default into option
This allows it to be accessed like options.services.nextcloud.phpPackage.default

(cherry picked from commit 5a7afe0a331f97d7dbc65abe38f9a1807d2d753d)
2025-07-09 16:10:29 +02:00
Jeremy FleischmanandMaximilian Bosch 0a4c03ed81 nextcloud: add nextcloud.nginx.enableFastcgiRequestBuffering option
Enabling this option fixes (works around) Nextcloud's notorious "0 byte file"
issue. See these upstream issues:

- https://github.com/nextcloud/documentation/issues/9574
- https://github.com/nextcloud/server/issues/7995

This fixes https://github.com/NixOS/nixpkgs/issues/252980

Co-authored-by: Maximilian Bosch <6025220+Ma27@users.noreply.github.com>
2025-07-06 13:21:01 -07:00
Dominique Martinet 78a20758e0 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
2025-07-05 06:35:26 +09:00
Maximilian BoschandGitHub a064abed61 Merge: nixos/postgresql: move postStart into separate unit (#403645) 2025-06-27 18:09:54 +02:00
teutat3s 0c7a8d5255 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.
2025-06-25 20:36:45 +02:00
Wolfgang WaltherandMarcel 41c5662cbe nixos/postgresql: move postStart into separate unit
This avoids restarting the postgresql server, when only ensureDatabases
or ensureUsers have been changed. It will also allow to properly wait
for recovery to finish later.

To wait for "postgresql is ready" in other services, we now provide a
postgresql.target.

Resolves #400018

Co-authored-by: Marcel <me@m4rc3l.de>
2025-06-24 15:26:47 +02:00