Commit Graph

48170 Commits

Author SHA1 Message Date
networkException
8583a0de6f nixos/nextcloud: document systemd credentials as a backwards incompatible change in the 25.05 release notes
This patch adds a release note entry to the 25.05 release
about the use of systemd credentials to read in secrets.

It's part of the backward incompatibilities section as
changes to the behavior of `nextcloud-occ` might break
existing scripts.
2025-01-22 17:27:02 +01:00
networkException
549d8a6d44 nixos/tests/nextcloud: fix redis cache non empty tests
This patch changes the implementation of the subtests to
check for redis' cache being non empty to only run redis-cli
and jq in a shell and assert the returned length in python.

This fixes jq "len" simply not compiling and makes sure
regressions get noticed.
2025-01-21 13:13:36 +01:00
networkException
18de1c264e nixos/tests/nextcloud: use lib instead of pkgs.lib wherever trivial 2025-01-21 13:13:35 +01:00
networkException
2ce1e84103 nixos/nextcloud: use LoadCredential to read secrets
This patch adds support for using systemd's LoadCredential
feature to read various secret files used by nextcloud service
units.

Previously credentials had to be readable by the nextcloud user,
this is now no longer required.

The nextcloud-occ wrapper script has been adjusted to use
systemd-run for loading credentials when being called from
outside a service.

In detail this change touches various details of the module:

- The nix_read_secret() php function now takes the name of a
  file relative to the path specified in the CREDENTIALS_DIRECTORY
  environment variable.
- The nix_read_secret() now exits with error code 1 instead of
  throwing a RuntimeException as this will properly error out
  the nextcloud-occ script
- Only the nextcloud-setup service unit has the adminpass credential
  added in addition to the other credentials
- Uses of ExecCondition= in nextcloud-cron and nextcloud-update-db
  have been replaced by a shell conditional as ExecCondition currently
  doesn't support credentials
- The phpfpm-nextcloud service now runs a preStart script to make
  the credentials it gets readable by the nextcloud user as the
  unit runs as root but the php process itself as nextcloud.
- To invoke occ notify_push:setup when using nextcloud notify_push
  a new service has been added that replaces the preStart script
  in nextcloud-notify_push.service. This has been done as the
  main executable only needs the database password credential.

Co-authored-by: lassulus <lassulus@lassul.us>
2025-01-21 13:13:34 +01:00
networkException
e6b078981b nixos/nextcloud: move systemd service overrides for phpfpm-nextcloud closer to phpfpm config 2025-01-21 13:13:33 +01:00
networkException
598ba3922c nixos/nextcloud: use writeShellApplication for nextcloud-occ
This patch replaces the use of writeScriptBin for the nextcloud-occ
script with writeShellApplication, enabling shell checking.

This patch also updates various invocations of the script to
use lib.getExe.
2025-01-21 13:13:32 +01:00
networkException
9ffa0a5945 nixos/tests/nextcloud: test for notify_push in with-declarative-redis-and-secrets
This patch adds a subtest and corresponding configuration to
with-declarative-redis-and-secrets to test for nextcloud notify_push
to be working, just as in with-postgresql-and-redis.

As notify_push needs to connect to the database, including it
in this test checks that it can read the dbpassFile properly.
2025-01-21 13:13:30 +01:00
Jörg Thalheim
c80e750b52 sunshine: 0.23.1 -> 2025.118.151840 (#375153) 2025-01-21 13:06:13 +01:00
Kerstin
f4e3779598 nixos/radicale: Allow AF_UNIX for systemd log (#373893) 2025-01-21 12:43:28 +01:00
K900
441c242855 nixos/tests: fix bonding test 2025-01-21 13:44:36 +03:00
Sandro
2630f1f73f nixos/stirling-pdf: fix external dependencies and service permissions (#374225) 2025-01-21 11:17:14 +01:00
Martin Weinelt
886a2858d3 mediawiki: 1.42.4 -> 1.43.0 (#369641) 2025-01-21 03:25:11 +01:00
Martin Weinelt
19a38ac732 nixos/mediawiki: make changes for 1.43.0 2025-01-21 03:12:28 +01:00
Artemis Tosini
4a75ef3d71 nixos/garage: add user-given path to ReadWritePaths (#373114) 2025-01-20 21:54:54 +00:00
Pol Dellaiera
f2685b1e2f pkgs/readeck + nixos/readeck: init (#370354) 2025-01-20 22:22:24 +01:00
Julien Malka
0be7395f95 nixos/readeck: init 2025-01-20 22:17:30 +01:00
Pol Dellaiera
af1bc453b3 fider: init at 0.24.0 (#353346) 2025-01-20 20:19:14 +01:00
Gaétan Lepage
0cda476cd5 sdl3: init at 3.1.8 (#326699) 2025-01-20 14:16:23 +01:00
Yureka
3b6f658130 init-script-builder: fix build (#375160)
Change-Id: I244160844aad5fcfcab323dd721cfd87e4b8ddc0
2025-01-20 08:29:57 +01:00
K900
e02ff39e39 linux_6_13: init (#375250) 2025-01-20 10:20:34 +03:00
K900
bcdfbb7b73 linuxPackages: 6.6 -> 6.12 (#370410) 2025-01-20 10:20:18 +03:00
Morgan Jones
8c0035ae8f release-notes/25.05: add Mattermost details 2025-01-20 08:07:45 +01:00
Morgan Jones
84c6d60c26 manual: add mattermost.chapter.md 2025-01-20 08:07:45 +01:00
Morgan Jones
f8eac009ee nixos/mattermost: modernize, support MySQL and mmctl
Based on #198040. Prioritizes backwards compatibility, including
database and plugin compatibility, while adding more sensible
defaults like database peer authentication.

Expand the scope of tests to include plugins (including building
from source) and testing that a piece of media uploads and downloads
to make sure the storage directory doesn't vanish.
2025-01-20 08:07:45 +01:00
K900
6a580ab670 nixos/release-small: add latestKernel test 2025-01-20 09:59:48 +03:00
Felix Bühler
1d8a3e9ac5 nixos/freshrss: fix empty extensions (#359991) 2025-01-19 22:56:59 +01:00
Morgan Helton
bbc455519f sunshine: 0.23.1 -> 2025.118.151840 2025-01-19 15:05:28 -06:00
K900
4b5b5d19d2 nixos/test-driver: fix OCR (#375091) 2025-01-19 21:01:53 +03:00
Victor Engmark
8f2bc9842e nixos/test-driver: Use consistent naming and types
Specifies the "last try" parameter in all methods called by `retry`.
Doing this clarifies its presence, and makes it easier to use it in the
future if needed.
2025-01-19 17:59:13 +01:00
K900
84b216c2a6 nixos/test-driver: fix OCR
I don't know why it doesn't want to do TIFF now, but there's also
absolutely no reason for it to be TIFF anyway, so let's just use
an image format that is actually sane.
2025-01-19 18:41:58 +03:00
Sandro
49b9166ece headscale: 0.23.0 -> 0.24.0, cleanup maintainers (#374636) 2025-01-19 14:33:30 +01:00
Sandro Jäckel
cc2f4fbf1c headscale: 0.23.0 -> 0.24.0, cleanup maintainers 2025-01-19 14:08:52 +01:00
Sandro
9dee4ae97c nixos/paperless: Support remote databases (#368137) 2025-01-19 14:05:48 +01:00
K900
f995e96fd1 nixos/acme: disable rate limiting to fix the test (#374984) 2025-01-19 15:07:43 +03:00
Maximilian Bosch
a4afb337c3 Merge: nextcloud: remove 28, update apps (#374902) 2025-01-19 12:34:46 +01:00
Maximilian Bosch
c1bf44ab55 Merge: nixos/postgresql: fix condition for readwritepaths (#372164) 2025-01-19 12:32:13 +01:00
Pol Dellaiera
54e48b64d1 nixos/fider: init
Co-authored-by: Niklas Korz <niklas@niklaskorz.de>
2025-01-19 12:03:41 +01:00
Michele Guerini Rocco
b4622e7a25 nixos/alsa: reintroduce hardware.alsa.enablePersistence (#373529) 2025-01-19 11:05:37 +01:00
Julien Malka
e5ad45c4b7 FerretDB document defaults, PostgreSQL default URL, disable telemetry (#288493) 2025-01-19 11:01:27 +01:00
Remy D. Farley
b99293177b nixos/yggdrasil-jumper: init 2025-01-19 09:45:46 +00:00
K900
17f38bc01d nixos/acme: disable rate limiting to fix the test
Sometimes the nginx reload service fires too fast so systemd kills it.
2025-01-19 12:19:00 +03:00
nixpkgs-ci[bot]
b529daaab8 Merge master into staging-next 2025-01-19 06:04:29 +00:00
Emily Trau
d6db771a73 z3: move relnotes to 25.05 (#374872) 2025-01-19 13:20:55 +11:00
nixpkgs-ci[bot]
c39935db5b Merge master into staging-next 2025-01-19 00:15:38 +00:00
Maximilian Bosch
7ef73d05cd nextcloud28: remove
This major release is dead now.
2025-01-19 00:08:35 +01:00
Gaétan Lepage
b60bec4674 cockpit: fix listen port (#371245) (#374667) 2025-01-18 22:11:32 +01:00
Morgan Jones
51fc5327cc z3: move relnotes to 25.05
These were originally slated for 24.11 but the PR got delayed.
2025-01-18 11:37:16 -08:00
nixpkgs-ci[bot]
0cae90809c Merge master into staging-next 2025-01-18 18:04:10 +00:00
Lin Jian
9095f3728a nixos/doc/rl-2505: fix release notes for nixos-rebuild build-image (#374788) 2025-01-19 01:10:51 +08:00
Alex Martens
74de1cde51 nixos/borgbackup: fix typo in example 2025-01-18 08:06:05 -08:00