0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-12 05:16:25 +03:00
Commit graph

10217 commits

Author SHA1 Message Date
Wolfgang Walther
4a5e71b144
postgresql: refactor postgresqlVersions attribute & tests (#377048) 2025-01-28 22:41:34 +01:00
Bjørn Forsman
5555b70e30 nixosTests.hound: migrate from 'config' to 'settings'
Fixes this eval warning:

  evaluation warning: The option `services.hound.config' defined in `makeTest parameters' has been changed to `services.hound.settings' that has a different type. Please read `services.hound.settings' documentation and update your configuration accordingly.
2025-01-28 19:47:17 +01:00
Alyssa Ross
35febc093c
Merge remote-tracking branch 'origin/master' into staging-next
Conflicts:
	pkgs/by-name/ha/harper/package.nix
2025-01-28 13:29:32 +01:00
Krzysztof Nazarewski
49a26eda2a nixos/netbird: harden and extend options 2025-01-28 12:34:55 +01:00
r-vdp
e6bc540ce0
nixos/activation: pass the action as an argument to the pre-switch-checks
This allows for instance to reject switching into a configuration, while
still allowing to reboot into that same configuration.

This can be useful for instance to reject switching to a configuration
with a new systemd major version, but setting that same configuration as
the new boot default with `switch-to-configuration boot` is fine.
2025-01-28 11:40:38 +01:00
Martin Weinelt
33647a8179
Merge remote-tracking branch 'origin/master' into staging-next
Conflicts:
- pkgs/by-name/ca/cargo-leptos/package.nix
- pkgs/by-name/ha/harper/package.nix
- pkgs/by-name/ma/marmite/package.nix
- pkgs/by-name/no/nomino/package.nix
- pkgs/by-name/st/stgit/package.nix
- pkgs/development/python-modules/pycm/default.nix
- pkgs/development/python-modules/python-gvm/default.nix
- pkgs/development/tools/rbspy/default.nix
2025-01-28 00:15:44 +01:00
Felix Bühler
bed0e7fadc
nixos/freshrss: add caddy support (#377068) 2025-01-27 21:39:01 +01:00
nixpkgs-ci[bot]
5df98c0ec5
Merge master into staging-next 2025-01-27 18:04:30 +00:00
Silvan Mosberger
7cceab521e
pds: init at 0.4.74, nixos/pds: init (#350645) 2025-01-27 13:54:09 +01:00
K900
b6f676fbd2 Merge remote-tracking branch 'origin/master' into staging-next 2025-01-27 15:42:36 +03:00
Bobby Rong
e28253539b
nixosTests.mate-wayland: Check for more text (#377283) 2025-01-27 19:43:21 +08:00
Bobby Rong
7db3b7c28b
nixosTests.mate-wayland: Check for more text
* As long as the dialog shows everything is fine, make the test less flaky.
* Also use `pgrep` instead of `pgrep -f` when possible.
2025-01-27 19:16:34 +08:00
Joshua Kobschätzki
433006b863 squid: add test 2025-01-27 12:12:01 +01:00
Morgan Jones
672f423d0c nixos/mattermost: default preferNixConfig to true
Now that we are disabling telemetry by default, we should attempt to
override it and other options in existing mutable configs,
if the user had a mutable config and advances their system.stateVersion.
2025-01-27 10:29:37 +01:00
Morgan Jones
fc3f7c17e2 nixos/mattermost: disable telemetry by default
We should disable telemetry but enable security update checks. Make both
controlable in the module without digging into settings.

Disabling telemetry also makes NixOS tests faster because the server
tries to send telemetry on first start.
2025-01-27 10:29:37 +01:00
Felix Buehler
88234d3a4f nixos/freshrss: add caddy support 2025-01-26 22:33:20 +01:00
Maximilian Bosch
eb96c8dc5b
postgresql: refactor postgresqlVersions attribute & tests
Every postgresql testcase essentially does the following things:

* Filter `postgresqlVersions` for server packages
* Filter postgresql server packages for suitable ones (i.e. extensions
  must support the given version)
* Generate an attribute-set of testcases

The first item became necessary in
7ab1e88833 given that
`postgresql/default.nix` now exposes JIT and non-JIT servers AND a
`libpq` that is not suitable for the tests here.

This changes restructures this a little bit, i.e.:

* Having an attribute-set that contains a bunch of postgresql servers
  and a single client package seems odd (and the sole consumer of
  `postgresqlVersions` in nixpkgs, the test suite, has to take that into
  account). Hence, postgresql's default.nix now provides `libpq` (the client)
  and a `postgresqlVersions` attribute with all supported JIT and non-JIT
  variants of postgresql.

* Each test-case gets a third argument, a function called `genTests`:
  this function sets `recurseForDerivations = true;` and generates an
  attribute-set of tests for each postgresql version given a function
  that returns a testcase or multiple test-cases (`makeTestFor`). The
  argument to `makeTestFor` is a postgresql server package.

  This function also accepts a filter predicate that is passed against
  `filterAttrs` to remove postgresql server packages that are not
  suitable for the test (e.g. because the version isn't supported by the
  extension to test).

I checked by making sure that the `.drv` doesn't change on staging with
this change on top for postgresq, postgresql-jit,
postgresql-wal-receiver, postgresql-tls-client-cert, anonymizer, pgjwt,
pgvecto-rs, timescaledb, tsja and wal2json.
2025-01-26 21:58:57 +01:00
Alyssa Ross
6723c183bf
Merge remote-tracking branch 'origin/staging-next' into staging
Conflicts:
	pkgs/by-name/ca/cargo-public-api/package.nix
	pkgs/by-name/ju/just/package.nix
	pkgs/by-name/kd/kdlfmt/package.nix
	pkgs/by-name/mo/mountpoint-s3/package.nix
	pkgs/by-name/wa/wayidle/package.nix
2025-01-26 19:49:51 +01:00
Arne Keller
2ab9225a40
stash: refactor; 0.25.1 -> 0.27.2; nixos/stash: init (#323231) 2025-01-26 15:16:35 +01:00
Julien Moutinho
f2a5463bf2 nixos/public-inbox: cleanup test 2025-01-26 15:06:05 +01:00
Julien Moutinho
bbb68bef2e nixos/public-inbox: test confinement 2025-01-26 15:06:05 +01:00
Alyssa Ross
502c77492b
Merge remote-tracking branch 'origin/staging-next' into staging
Conflicts:
	pkgs/applications/editors/vim/plugins/non-generated/avante-nvim/default.nix
	pkgs/applications/editors/vim/plugins/non-generated/cord-nvim/default.nix
	pkgs/applications/version-management/git-stack/default.nix
	pkgs/by-name/bo/boxbuddy/package.nix
	pkgs/by-name/ca/capnproto-rust/package.nix
	pkgs/by-name/ca/cargo-binstall/package.nix
	pkgs/by-name/ca/cargo-deb/package.nix
	pkgs/by-name/ca/cargo-modules/package.nix
	pkgs/by-name/cl/clapboard/package.nix
	pkgs/by-name/do/dotslash/package.nix
	pkgs/by-name/fe/felix-fm/package.nix
	pkgs/by-name/gi/gitlab-ci-ls/package.nix
	pkgs/by-name/go/gotify-desktop/package.nix
	pkgs/by-name/ha/handlr-regex/package.nix
	pkgs/by-name/ir/iroh/package.nix
	pkgs/by-name/ma/manga-tui/package.nix
	pkgs/by-name/ob/obs-cmd/package.nix
	pkgs/by-name/ox/oxlint/package.nix
	pkgs/by-name/pi/pik/package.nix
	pkgs/by-name/re/reindeer/package.nix
	pkgs/by-name/rn/rnr/package.nix
	pkgs/by-name/ro/routinator/package.nix
	pkgs/by-name/rw/rwpspread/package.nix
	pkgs/by-name/sk/skim/package.nix
	pkgs/by-name/so/sope/package.nix
	pkgs/by-name/so/soteria/package.nix
	pkgs/by-name/sp/spacer/package.nix
	pkgs/by-name/st/stylance-cli/package.nix
	pkgs/by-name/su/subxt/package.nix
	pkgs/by-name/sw/swayfx-unwrapped/package.nix
	pkgs/by-name/te/television/package.nix
	pkgs/by-name/to/toast/package.nix
	pkgs/by-name/wa/wastebin/package.nix
	pkgs/by-name/wi/wit-bindgen/package.nix
	pkgs/by-name/wo/workshop-runner/package.nix
	pkgs/development/interpreters/wasmtime/default.nix
	pkgs/development/tools/rust/cargo-edit/default.nix
	pkgs/development/tools/sentry-cli/default.nix
	pkgs/misc/t-rec/default.nix
	pkgs/tools/video/yaydl/default.nix
2025-01-26 14:55:08 +01:00
Adam C. Stephens
272fb5babf
nixos/tests/incus: extend check timeouts 2025-01-25 10:50:36 -05:00
Adam C. Stephens
0e7fa5714c
incus: fix instance unclean shutdown, add per-instance lxcfs support (#373920) 2025-01-25 10:05:03 -05:00
DrakeTDL
8814ab8ab5
nixos/stash: init 2025-01-24 10:50:55 -08:00
Pol Dellaiera
f426a49433
nixos/mongodb: add support for mongodb-ce package (#375587) 2025-01-24 19:24:49 +01:00
Austin Horstman
2a5f6cadd5
swayfx-unwrapped: backport fix to support updated libinput (#376189) 2025-01-24 12:00:44 -06:00
Alyssa Ross
53de5140ae
Merge remote-tracking branch 'origin/staging-next' into staging
Conflicts:
	pkgs/applications/editors/vim/plugins/non-generated/nvim-spectre/default.nix
	pkgs/applications/editors/vim/plugins/non-generated/sg-nvim/default.nix
	pkgs/by-name/ce/cedar/package.nix
	pkgs/by-name/gn/gnome-podcasts/package.nix
	pkgs/by-name/ru/rust-analyzer-unwrapped/package.nix
	pkgs/by-name/sy/systemctl-tui/package.nix
	pkgs/by-name/ti/tinty/package.nix
2025-01-24 16:40:22 +01:00
K900
5b961c87be nixos/tests/installer: add shellcheck-minimal
Required after #375961
2025-01-24 11:04:28 +03:00
Patrick Steinhardt
d267ea8717 nixos/wrappers: add per-wrapper enable option
While it is possible to globally enable or disable security wrappers, it
isn't possible to disable only a subset of them. Consequently, users
will have to overwrite the security wrappers completely and re-add the
desired subset in case they want to disable a subset of those set up by
the NixOS modules.

Address this usecase by adding a new per-wrapper enable option.
2025-01-23 19:56:06 +01:00
Grimmauld
80f8c4e269
nixos/tests/swayfx: fix deprecation warning 2025-01-23 19:29:10 +01:00
Cosima Neidahl
b7d58b870d
lomiri.lomiri-telephony-service: 0.5.3 -> 0.6.0, rename from lomiri.telephony-service (#374141) 2025-01-23 19:03:06 +01:00
t4ccer
6d0241ebb0
pds: add NixOS test 2025-01-23 10:26:13 -07:00
r-vdp
113dbd79de
nixos/activation: improve preSwitchChecks
A couple of improvements:

1. Avoid the generally discouraged apply argument to options, as it has
   quite weird semantics
2. Avoid issues when a user calls a preSwitchCheck `script`, which
   would've been silently overridden by the existing implementation.
   Reliance on a special attribute name like that is bound to lead to a
   very-hard-to-debug problem for someone at some point
3. Use writeShellApplication so that the preSwitchChecks are checked by
   shellcheck and and so that they run with basic bash guardrails
4. Fix shellcheck issue (testing the value of $?)
5. Add a positive preSwitchCheck to the nixos test, to make sure that
   that works as intended
2025-01-23 15:51:37 +01:00
nixpkgs-ci[bot]
dbd63f1910
Merge staging-next into staging 2025-01-23 06:05:26 +00:00
Lin Jian
363cce76a2
various: remove AndersonTorres from maintainership (#375416) 2025-01-23 13:37:50 +08:00
Anderson Torres
bc80114502 various: remove AndersonTorres from modules maintainership 2025-01-22 21:47:09 -03:00
nixpkgs-ci[bot]
a7ee3fbaaa
Merge staging-next into staging 2025-01-23 00:14:33 +00:00
Nick Cao
20065b3e46
caddy: 2.9.0 -> 2.9.1 (#375655) 2025-01-22 16:22:57 -05:00
nixpkgs-ci[bot]
9fb7ecfb57
Merge staging-next into staging 2025-01-22 00:14:52 +00:00
Yifei Sun
4ae25041b2
caddy: 2.9.0 -> 2.9.1
Co-authored-by:: techknowlogick <techknowlogick@gitea.com>
2025-01-21 17:45:47 -05:00
Leona Maroni
1c698f52e3
matomo: refactor, matomo-beta: remove (#374022) 2025-01-21 19:40:08 +01:00
Leona Maroni
c068347f63
Fixes and housekeeping for the varnish module (#373747) 2025-01-21 19:38:51 +01:00
nixpkgs-ci[bot]
dec099d3e7
Merge staging-next into staging 2025-01-21 18:05:23 +00:00
Niklas Korz
9e1806e012 nixosTests.mongodb-ce: init 2025-01-21 18:25:39 +01:00
Niklas Korz
ac16c51570 nixosTests.mongodb: actually use mongodb service module and add support for mongodb-ce 2025-01-21 18:25:39 +01:00
Niklas Korz
fd348f4354 nixosTests.mongodb: migrate from handleTest to runTest 2025-01-21 18:25:39 +01:00
Cosima Neidahl
14b04af9f4
mir,mir_2_15: Fix builds, modernise & fix VM tests (#374873) 2025-01-21 14:28:57 +01:00
Julien Moutinho
eb00bbcdaa nixos/public-inbox: fix flaky test by waiting for sockets 2025-01-21 13:50:45 +01:00
Julien Moutinho
3c07862664 nixos/public-inbox: fix test by creating Git repositories
Previously in https://github.com/NixOS/nixpkgs/pull/308740
`BindReadOnlyPaths=` was fixed, but remained mounting non-existing Git repositories:

vm-test-run-public-inbox> machine # [   19.503051] (ox-httpd)[1489]:
public-inbox-httpd.service: Failed to set up mount namespacing:
/var/lib/gitolite/repositories/user/repo1.git: No such file or directory
2025-01-21 13:50:45 +01:00