921 Commits
Author SHA1 Message Date
K900 dc0f4cd301 Merge remote-tracking branch 'origin/staging-next' into staging 2026-06-24 16:12:11 +03:00
Leona Maroniandosnyx 6f5d20fe0c nixos/mysql: fix initalScript option after security fix
services.mysql.initalScript runs with the root@localhost mysql user.
This seems consistent with the other invocations that run in the first
startup of mysql.
After the security fix, the mysql command executing the initial script
was broken as it tried to connect to root@localhost while being the mysql
system user.

We could instead use the mysql@localhost mysql user, but this would be
inconsistent with the other invocations.

Co-Authored-By: osnyx <os@flyingcircus.io>
2026-06-24 11:04:24 +02:00
nixpkgs-ci[bot]andGitHub 92fd31e931 Merge staging-next into staging 2026-06-23 00:19:28 +00:00
Thomas Gerbet 1d6947077e nixos/mysql: fix default MySQL/Percona Server insecure authentication
Existing deployments using MySQL or Percona Server with `services.mysql`
do not restrict authentication to the root@localhost user allowing any
user on the system to log in without a password.

With this changes:
* new deployments will use the `auth_socket` authentication by default
  to only allow the local root user to log in as the MySQL root user
* existing deployments with a stateVersion > 26.05 will also be moved to
  the `auth_socket` authentication
* existing deployments with a stateVersion <= 26.05 have a warning
  logged when the local authentication seems to be open

Users can disable this behavior by setting `services.mysql.secureSuperUserByDefault`
to `false`.
2026-06-22 17:24:49 +02:00
nixpkgs-ci[bot]andGitHub d94448ae90 Merge staging-next into staging 2026-06-21 00:51:18 +00:00
Hythera 97b8f17973 various: adopt packages by redis team 2026-06-16 16:19:58 +02:00
nixpkgs-ci[bot]andGitHub a800466adb Merge staging-next into staging 2026-06-13 18:31:02 +00:00
Wolfgang Walther e5699f2308 postgresqlPackages.plv8: drop
`plv8` depends on the outdated NodeJS 20. Upstream waits for v8-cmake to
make a move (https://github.com/plv8/plv8/issues/610), but that project
has been inactive for a bit more than a year.

Even when allowing the insecure nodejs20, the package fails to build.
Insecure and broken - we might as well drop it.
2026-06-13 11:53:42 +02:00
Wolfgang Walther 9c5e58d079 postgresql: 17 -> 18
Now that 26.05 is branched off, we should bump PostgreSQL's default
version to v18.
2026-05-25 16:10:08 +02:00
znmz ff1f398de0 treewide: fix typos in all markdown files 2026-05-17 13:02:47 +03:00
Guillaume GirolandGitHub e8c32edb37 redis: set config group for service user (#484438) 2026-05-09 21:33:12 +00:00
SandroandGitHub 90fcd94dc3 nixos/lldap: harden systemd service (#487933) 2026-05-06 23:26:37 +00:00
Michael Daniels 2e87c2f8f4 nixos/*: remove unused let bindings
Generated using deadnix (with some manual work); split from #514611.
2026-05-01 20:39:14 -04:00
nixpkgs-ci[bot]andGitHub e08c3a8ded Merge master into staging-next 2026-04-16 18:26:01 +00:00
6543 629657670d nixos/services.mysql: remove legacy logic as old mysql version packages where droped 2026-04-09 19:44:48 +02:00
nixpkgs-ci[bot]andGitHub c3fbeb492c Merge master into staging-next 2026-04-09 13:50:43 +00:00
Martin Weinelt b6fe5a9ce2 mysql80: drop
MySQL 8.0 reaches EOL on 2026-04-30 and cannot be supported throughout
the NixOS 26.05 release cycle.
2026-04-08 14:22:26 +02:00
nixpkgs-ci[bot]andGitHub 055696d9bd Merge staging-next into staging 2026-04-06 18:20:20 +00:00
Bart Louwers 7f707274cf doc: fix nix repl command in NixOS manual 2026-04-03 12:09:53 +02:00
Victor Engmark c4f5dfad0d treewide: Remove continuation escape at end of commands
To avoid confusion and spurious newlines in the output.

Found by searching for a backslash followed by a newline, some
indentation, and then the end of multi-line string marker, using the
following extended regex:

```regex
\\\n +'';
```
2026-03-17 16:47:55 +01: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
superherointj 5a650db9ff nixos/etcd: add missing maintainers reference for NixOS module 2026-03-07 15:02:54 -03:00
Silvan MosbergerandGitHub 2cc2e0225f Revert "ci: module maintainer review requests; nixos/modules: init meta.teams" 2026-03-06 08:41:24 +01:00
Fernando RodriguesandGitHub 943ba5b1a5 ci: module maintainer review requests; nixos/modules: init meta.teams (#488014) 2026-03-06 05:21:38 +00:00
SandroandGitHub b3a1d52a99 nixos/redis: add support for more auth options (#475735) 2026-03-06 02:58:24 +00:00
SandroandGitHub 43bce99d51 nixos/mongodb: fix initialScript when dbpath exists and is empty (#443005) 2026-03-04 01:44:53 +00:00
Silvan Mosberger 3dc5545d51 modules/generic/meta-maintainers.nix: Check validity of meta.maintainers
And fix a case where it wasn't valid
2026-03-02 10:58:09 +01:00
Wolfgang WaltherandGitHub fea5e1f7c1 various: add {file} tags for nixos option descriptions (#455811) 2026-02-10 10:01:28 +00:00
Ronny Chevalier a8442bd3b7 nixos/lldap: harden systemd service
To follow the principle of least privilege, let's
remove privileges it does not require by configuring
systemd service settings.
2026-02-07 12:39:17 +01:00
Herwig HochleitnerandGitHub e1ce03f389 nixos/lldap: allow automatic creation of a local database (#474570) 2026-01-29 06:02:01 +00:00
AtemuandGitHub 1b1a7129f2 nixos/influxdb: refactor (#484156) 2026-01-28 01:07:29 +00:00
Julia DeMille d462c4dd2c nixos/redis: set config group for service user
Avoids trying to set the primary group of the redis user to a group that doesn't exist.

Signed-off-by: Julia DeMille <me@jdemille.com>
Change-Id: Ic67fb735ca739a13b95e98675994de376a6a6964
2026-01-27 10:43:25 -06:00
Ashley Hooper 21a5656772 nixos/redis: rework Sentinel options
- Add sentinelMasterHost, sentinelMasterPort, sentinelMasterQuorum
  options
- Add special handling for mutable state in /var/lib/redis-xxx

Redis/Valkey Sentinel persists dynamic cluster state by rewriting its
configuration file at runtime. This behaviour cannot be disabled.

Add conditional preStart logic to avoid overwriting Sentinel-owned
configuration while preserving NixOS-managed defaults. This introduces
a necessary, documented deviation from strict declarative semantics.
2026-01-27 18:58:04 +13:00
Atemu 138743af11 nixos/influxdb: use mkEnableOption 2026-01-26 22:15:21 +01:00
Atemu 5772a253ed nixos/influxdb: use mkIfs rather than optionalAttrs 2026-01-26 22:11:49 +01:00
Atemu c48194bb3e nixos/influxdb: migrate to RFC42-style settings option 2026-01-26 22:11:49 +01:00
Dyego Aurélio 28096cc5e3 treewide: apply nixfmt 1.2.0 2026-01-22 18:37:56 -03:00
h7x4 b36f8e0b79 various: add {file} tags for nixos option descriptions 2026-01-18 21:49:31 +09: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
Maximilian Bosch 40e5aeb9c8 victoriatraces: 0.5.1 -> 0.6.0
ChangeLog: https://docs.victoriametrics.com/victoriatraces/changelog/#v060

Just like victoriametrics[1], we now need to allow `mincore`:

    SECCOMP auid=4294967295 uid=61888 gid=61888 ses=4294967295 pid=859923 comm="victoria-traces" exe="/nix/store/kxqhlmqdc6ml4l9asb69w39yny88hmvf-VictoriaTraces-0.6.0/bin/victoria-traces" sig=31 arch=c000003e syscall=27 compat=0 ip=0x40578e code=0x80000000

[1] efca7ca9dc
2026-01-11 11:34:28 +01:00
sweenu 3ab6ee74cf nixos/lldap: allow automatic creation of a local database 2026-01-08 20:44:49 +01:00
Ashley Hooper 1a05178b43 nixos/redis: add support for more auth options
- Add Redis auth options that are important for running a
secure Redis infrastructure
- `masteruser` and `masterauth` for authentication between
replicas and master
- `sentinel auth-user` and `sentinel auth-pass` to provide
credentials that a Sentinel instance should use to
authenticate to the Redis instance it is monitoring
- Add assertions to catch configuration issues before
build/deployment

Signed-off-by: Ashley Hooper <ashleyghooper@gmail.com>
2026-01-02 07:58:50 +13:00
SandroandGitHub 888dec0bf6 victorialogs: 1.38.0 -> 1.40.0 & allow mincore syscall (#470233) 2025-12-31 17:12:33 +00:00
Maximilian BoschandGitHub 6acb057de6 nixos/postgresql: document difference between postgresql.target and postgresql.service (#473313) 2025-12-29 12:20:27 +00:00
Bart Louwers b7343ece65 doc: fix rendering issue in postgresql documentation 2025-12-26 21:24:21 +01:00
Wolfgang WaltherandGitHub 76e2d86208 nixos/postgresql: add freeformType to ensureClauses option (#467286) 2025-12-26 11:00:51 +00:00
MikilioandWolfgang Walther fcdfa7b5d0 nixos/postgresql: remove explicit submodule options
These can be set via the freemform type anyway.
2025-12-26 11:55:54 +01:00
MikilioandWolfgang Walther 3c589f7550 nixos/postgresql: add freeformType to ensureClauses option
This commit adds a freeform type to accomodate for new options to use
with ALTER ROLE.
It also will perform extra checking and conversion for options with
parameters.
Converts option names into upper case with space instead of underscore.
2025-12-26 11:55:53 +01:00
Anton Mosich f4d0f170b4 nixos/postgres: fix markup in docs 2025-12-23 00:04:24 +01:00
Maximilian Bosch 7a6ec4a99d nixos/postgresql: document difference between postgresql.target and postgresql.service
It's probably good to have this written down explicitly in the manual.
2025-12-22 22:35:37 +01:00