Commit graph

51468 commits

Author SHA1 Message Date
Picnoir fb92a140f2 nixos/tests/pleroma: rm x-xss-protection
See https://github.com/NixOS/nixpkgs/issues/438800

(cherry picked from commit f2edbb6a16)
2025-09-02 13:04:41 +00: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
Pavel Sobolev b2e397ff89
treewide: remove paveloom as maintainer
(cherry picked from commit f685a22664)
2025-09-02 09:58:37 +05:30
Morgan Jones cf39b1d157
[Backport release-25.05] mattermost: charset fixes (#439044) 2025-09-01 22:52:42 +00:00
Maximilian Bosch 27d2e27300 nixos/grafana: 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.

Hence, we turn this off, diverging from the upstream defaults here. An
upstream issue has been opened[2].

[1] https://owasp.org/www-project-secure-headers/#x-xss-protection
[2] https://github.com/grafana/grafana/issues/110369

(cherry picked from commit 409107d2f5)
2025-09-01 20:52:12 +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
Defelo 9978b14017 nixos/tests/glitchtip: test sourcemap uploads
(cherry picked from commit e9de9b50ce)
2025-09-01 15:54:37 +00:00
Defelo ad0f2f28ec nixos/radicle: add httpd.aliases option
(cherry picked from commit 8b4862c608)
2025-09-01 14:47:38 +00:00
Adam C. Stephens 67d07b7e23
[release-25.05] openvswitch: 3.5.1 -> 3.5.2 (#438904) 2025-09-01 09:47:54 -04:00
Alyssa Ross 5266a6d938 nixos/public-inbox: fix inboxdir option
This wasn't consistently used — sometimes the default value was
hardcoded.

(cherry picked from commit 0fdcb36005)
2025-09-01 15:44:38 +02:00
Adam C. Stephens 03a9484617
nixos/tests/openvswitch: improve ping check resiliency 2025-09-01 09:32:09 -04: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
Maximilian Bosch e1be8d8dd1 nixos/grafana: add prune option to provision.datasources
Closes #430532

(cherry picked from commit c7eb566c41)
2025-08-31 17:15:12 +00:00
Martin Weinelt f36fdd634d postfix-tlspol: 1.8.15 -> 1.8.16
https://github.com/Zuplu/postfix-tlspol/releases/tag/v1.8.16
(cherry picked from commit 609cad27ad)
2025-08-31 14:22:08 +00:00
Maximilian Bosch 7a9baae4e7
linux_6_15: remove
EOL upstream.

We only have one hardened kernel at the moment now because
LTS == latest available. This situation would've also happened before
the cleanup since 6.13/6.14 were removed in June already[1].

[1] 23b573705d

(cherry picked from commit 510532e9ae)
2025-08-31 15:34:01 +02:00
Sefa Eyeoglu b70e23a3bb nixos/postgresql-backup: add pgdumpAllOptions
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
(cherry picked from commit 82d2631e1c)
2025-08-30 12:53:14 +00:00
Sandro Jäckel 3edda9e8f3 nixos/postgresql-backup: do not enable assertions when module is disabled
(cherry picked from commit d7fbdf54e1)
2025-08-30 12:27:11 +00:00
PassiveLemon 46872122d2 nixos/wivrn: update to support wivrn 25.8
(cherry picked from commit b249b55a84)
2025-08-29 23:35:02 +00:00
Maximilian Bosch 73120866fa teams/flyingcircus: remove ma27 from members
By the end of the month, I'll leave Flying Circus. Thanks a lot for the
journey together <3

The rootless-test for podman is something I decided to keep since I'm
using parts of the features covered in there myself.

(cherry picked from commit 201cb3e519)
2025-08-28 17:15:18 +00:00
Wolfgang Walther 7bc8d63262
[25.05] Backport of #413251 (#435593) 2025-08-26 15:46:28 +00:00
Maximilian Bosch e3f9723c15
Merge: [Backport release-25.05] Fix: Correct podman systemd service name (#432866) 2025-08-25 12:27:48 +02:00
Vladimír Čunát 6570ceeb3c
thunderbird: 141.0 -> 142.0, drop firefox 128 (#435442) 2025-08-25 10:33:02 +02:00
Wolfgang Walther 44d6b48a5f postgresql.tests.postgresql.postgresql-backup-all: fix random dump
The new `\restrict` migitation creates random keys in the dump file by
default, which breaks a before/after test for the backup module. By
making the restrict key reproducible, the test passes again.

(cherry picked from commit 87e1134406)
2025-08-24 09:09:39 +00:00
Martin Weinelt db43745348
firefox-esr-128-unwrapped: drop
(cherry picked from commit 5cdd66b7df)
2025-08-23 13:38:04 +02:00
Adam C. Stephens e6ad556248
[Backport release-25.05] nixos/vector: add graceful shutdown limit option; nixos/vector: add option to disable the configuration validation (#428623) 2025-08-22 14:34:15 -04:00
Brendan Taylor 55ce6a8344 nixos/borgmatic: do not use pg_dumpall when a format is set (#413251)
(cherry picked from commit d0be8ff242)
2025-08-21 18:09:04 +02:00
Willy 9971d819cb nixosTests.prometheus-exporters.smokeping: fix test after 0.10.0
prometheus-smokeping-prober was updated to 0.10.0 in #396980
which introduced a new label `tos` in its metrics.
add it to the failing tests to make them match
the expected metric (and pass) again

you could argue that the tests are a bit too greedy with the way
they match metrics, but I actually like it that way

(cherry picked from commit 2103ba2688)
2025-08-21 14:03:55 +00:00
Jonas Heinrich a0c2500457 nixos/invoiceplane: Update patch
(cherry picked from commit aa06ffc4c3)
2025-08-20 14:49:48 +00:00
Minijackson 7255ed8f2c nixos/sssd: add upstream hardening options in sssd-kcm.service
(cherry picked from commit 4e40f1c79e)
2025-08-18 07:44:31 +00:00
Minijackson dcd993f7af nixos/sssd: add upstream directives in sssd.service
Changed the service type from forking to notify,
which should gives a better indication of when the service is ready.

Changed the preStart into an ExecStart,
in order for upstream's NotifyAccess=main to work.

Added Restart=on-abnormal for better service stability.

(cherry picked from commit 9867229696)
2025-08-18 07:44:31 +00:00
frantathefranta 361f6a6354
nixos/conman: init module
Adding a service for the conman package

Changes to conman service as per review

(cherry picked from commit 8b97231460)
2025-08-15 18:22:31 -04: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 483bf4e400
[Backport release-25.05]: nixos/slurm: remove mysql/InnoDB tuning settings, unbreak test (#432790) 2025-08-14 07:23:00 +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
Yethal 8409a094b3 virtualisation/oci-containers: fix podman systemd service name
(cherry picked from commit 68710f4064)
2025-08-11 16:39:49 +00:00
Markus Kowalewski 587d72880a nixos/slurm: remove mysql/InnoDB tuning settings, unbreak test
The tuning settings are recommended for production setups:
(https://slurm.schedmd.com/accounting.html#slurm-accounting-configuration-before-build)

These are not needed in the test and broke the MySQL service.

(cherry picked from commit 68d450a5b8)
2025-08-11 14:23:02 +02:00
Tert0 4aa2c4aaae
nixos/tests/velocity: fix mcstatus command
(cherry picked from commit 4999e4345a)
2025-08-10 16:38:46 +02:00
Wolfgang Walther a55f91168b
[Backport release-25.05] nixos/garage: set LimitNOFILE (#429643) 2025-08-09 17:14:04 +00:00
Wolfgang Walther 2b196d1c7f
[Backport release-25.05] nixosTests.firefly-iii: Added meta.platforms so that tests are skipped appropriately (#428630) 2025-08-09 17:09:10 +00:00
Wolfgang Walther 9e0d46b18f
[Backport release-25.05] peertube: remove spawn (#427195) 2025-08-09 16:59:42 +00:00
Wolfgang Walther 311b0326e6
[Backport release-25.05] nixos/iio: add package option (#427218) 2025-08-09 16:58:37 +00:00
lassulus 2932635c2e
[Backport release-25.05] paretosecurity: 0.2.38 -> 0.3.2 (#431393) 2025-08-08 13:28:53 +02:00
Seth Flynn 722bf47885
[Backport release-25.05] tuned: init at 2.25.1 (#430398) 2025-08-07 09:30:36 -04:00
liberodark e728d7ae4b nixos/ntpd-rs: hardening
(cherry picked from commit a9cd681b8d)
2025-08-07 16:20:54 +05:30
Seth Flynn 6dacbe7880
nixos/tuned: enable upower with tuned-ppd
Fixes: #431105
(cherry picked from commit 8f2a71ff49)
2025-08-06 20:21:50 -04: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
Sizhe Zhao 1c6aede85d
nixosTests.freshrss: handleTest -> runTest
(cherry picked from commit da6ecbe539)
2025-08-06 20:18:15 -04:00
Neyts Zupan b8ba4745db paretosecurity: 0.2.38 -> 0.3.2
Test for linking had to be removed because now the linking is more
complex and it would take too much mocking to test it.

The test in question was moved to the dashboard codebase that is
closed-source, if that helps in any way.

(cherry picked from commit a667834a5f)
2025-08-06 08:26:54 +00:00
Amadej Kastelic afc5524721
nixos/cjdns: update for cjdns 22.1 compatibility
(cherry picked from commit 7476494b3b)
2025-08-03 15:43:34 +02:00
Pavol Rusnak 0f73779511
cjdns: bring changes from master 2025-08-03 15:41:36 +02:00
Seth Flynn 2514f13aa6
nixos/tuned: init
(cherry picked from commit 3eeb7ad06a)
2025-08-02 10:57:37 -04:00
Aleksana eb3085f230
[25.05] Backport nixos/kanidm: accept originUrls following rfc8252 (#429527) 2025-08-02 22:14:05 +08:00
André Silva 64058315d1
[Backport release-25.05] nixos/qbittorrent: init (#429630) 2025-08-01 12:46:13 +01:00
Jhonas Wernery 4b555c184b nixos/garage: set LimitNOFILE (#429633)
Upstream uses 42000, see:
https://garagehq.deuxfleurs.fr/documentation/cookbook/systemd/

(cherry picked from commit 92b504d2ff)
2025-07-30 16:55:57 +00:00
bas 13df1220cc nixos/qbittorrent: add maintainer undefined-landmark
As discussed in PR #287923. The author agreed to add me as a maintainer
to the module after merging.

(cherry picked from commit 380cd5924b)
2025-07-30 17:07:14 +02:00
nuko 3849dd705e nixos/qbittorrent: init service module
nixos/qbittorrent: add default serverConfig & fix test

Migrate to runTest

Replace lib.optional with lib.optionals

nixos/qbittorrent: update release notes to 2511

(cherry picked from commit 84d174e312)
2025-07-30 17:04:45 +02:00
Martin Weinelt a10ae85d3a nixos/tlsrpt: configure explicit http_script
Make sure we get curl into the system, since when the tlsrpt rua is an
HTTP URL we need to be able to deliver to that.

(cherry picked from commit e030814446)
2025-07-30 13:36:27 +00:00
K900 c2d2283f41 nixos/release-small: fix eval
This was just broken for ages and no one noticed.

(cherry picked from commit 2ca6167483)
2025-07-30 09:39:58 +00:00
Marc Plano-Lesay 4fd3a59d8a
nixos/kanidm: accept originUrls following rfc8252 (#428204)
(cherry picked from commit 0d25584641)
2025-07-30 15:06:11 +10:00
Will Fancher 67a2f9968f
[Backport release-25.05] nixos/systemd: fix run0 failing to run commands (#429202) 2025-07-29 23:33:42 -04:00
Thomas Gerbet 33cb0b9a21 sudo: 1.9.17p1 -> 1.9.17p2
Changes:
https://www.sudo.ws/releases/stable/#1.9.17p2
(cherry picked from commit a3a0962f23)
2025-07-29 21:43:27 +00:00
Defelo b6639d9b3e
nixos/tests/go-httpbin: init
(cherry picked from commit e1b8c6c493)
2025-07-29 20:04:56 +05:30
Defelo 17847f675a
nixos/go-httpbin: init module
(cherry picked from commit 224dc30d39)
2025-07-29 20:04:55 +05:30
Jason Yundt d5378cec85 nixos/systemd: fix run0 failing to run commands
Fixes #361592.

I was able to test this change by doing the following:

1. Create a file named “test-systemd-run0.nix” that contains this Nix
expression:

    let
      nixpkgs = /path/to/nixpkgs;
      pkgs = import nixpkgs { };
    in
    pkgs.testers.runNixOSTest {
      name = "test-systemd-run0";
      nodes.machine = {
        security.polkit.enable = true;
      };
      testScript = ''
        start_all()
        machine.succeed("run0 env")
      '';
    }

2. Replace “/path/to/nixpkgs” with the actual path to an actual copy of
Nixpkgs.

3. Run the integration test by running this command:

    nix-build <path to test-systemd-run0.nix>

(cherry picked from commit d54262911c)
2025-07-28 21:59:21 +00:00
Martin Weinelt 007eb35d91 nixos/tlsrpt: fix permissions to execute postdrop
Calling to sendmail without AF_NETLINK causes:

> sendmail: fatal: inet_addr_local[getifaddrs]: getifaddrs: Address family not supported by protocol

and without AF_INET/AF_INET6:

> sendmail: warning: inet_protocols: disabling IPv6 name/address support: Address family not supported by protocol
> sendmail: warning: inet_protocols: disabling IPv4 name/address support: Address family not supported by protocol

Move the configurePostfix option one level up, since it now also
reconfigures the reportd systemd unit.

(cherry picked from commit b438f32b2a)
2025-07-28 14:16:59 +00:00
Martin Weinelt c3246b01ba nixos/tlsrpt: fix restart trigger
Triggering on a symlink target does not work.

(cherry picked from commit c3c5a3bfd0)
2025-07-28 14:16:59 +00:00
Martin Weinelt 6a90d84e44 nixos/tlsrpt: fix default postfix sendmail path
It is not in the PATH for the reportd, since it is a SUID wrapper.

(cherry picked from commit 1f9431801f)
2025-07-28 14:16:59 +00:00
Maximilian Bosch b210d55d48 nixos/lib/test-driver: try using XDG_RUNTIME_DIR if available
At work we have the use-case that several people connect to a large
Linux box to run tests and debug those interactively.

All tests write their state into a global `/tmp` -- e.g. the vde1 socket
and the VMs' state. This leads to conflicts when multiple people are
doing this.

This change tries to use XDG_RUNTIME_DIR before using Python's detection
of a global temp directory: when connecting, this requires a working
user session, but then we get working directories per user. This is
preferable over doing something like `mktemp -d` per run since that
would break use-cases where you want to keep the VMs' state across
multiple sessions (`--keep-vm-state`).

(cherry picked from commit 59b4d0de90)
2025-07-28 09:03:14 +00:00
Martin Weinelt 89b59646e8
[Backport release-25.05] postfix-tlspol: 1.8.9 -> 1.8.12 (#428692) 2025-07-27 15:01:43 +02:00
NullCube ebb3620e76 installer/nixos-generate-config: remove broadcom_sta
Resolves the installer failing on devices that include this hardware, as
broadcom_sta was marked as insecure due to being unmaintained and having
active CVE's.

This commit be reverted when/if the installer has a mechanism for allowing
insecure packages.

(cherry picked from commit 9c9f467d49)
2025-07-27 04:36:21 +00:00
Martin Weinelt 3856b699f3
postfix-tlspol: adopt package and module
(cherry picked from commit e6445e42fa)
2025-07-26 16:25:15 -04:00
Martin Weinelt c50fcdd313
nixos/postfix-tlspol: only preset dns resolver with useLocalResolver
This is the best indicator we have about whether to use a local resolver.

In the meantime I'm lobbying upstream to read /etc/resolv.conf.

(cherry picked from commit b201963951)
2025-07-26 16:25:15 -04:00
Savyasachee Jha 3b5f0b9ca6 nixosTests.firefly-iii: Added meta.platforms so that tests are skipped appropriately
(cherry picked from commit 91a1beec91)
2025-07-26 16:08:14 +00:00
weriomat 11f226d19d
nixos/vector: add option to disable the configuration validation
Currently, during built time the configuration gets checked by vector.
This can be a problem if [environment
variables](https://vector.dev/docs/reference/environment_variables/) are
interpolated into the configuration. In this case the validation can be
disabled. This came up in trying to find a solution for
[#377889](https://github.com/NixOS/nixpkgs/issues/377889).

(cherry picked from commit 6b4ce1ee23)
2025-07-26 17:30:29 +02:00
Nick Ionata e6279c5e35
nixos/vector: add graceful shutdown limit option
This adds a NixOS module option to configure the Vector cli option
`--graceful-shutdown-limit-secs`,
https://vector.dev/docs/reference/cli/#vector_graceful_shutdown_limit_secs.

(cherry picked from commit 25a40ead28)
2025-07-26 17:30:12 +02:00
Martin Weinelt d3b13a2850 nixos/frigate: don't clear model cache
Upstream stores the model cache in the config directory, which is
unnecessarily messy. The cache directory is still the correct place for
these, since they can be pruned and redownloaded, we just don't want it
to happen on every restart.

Fixes: #427714
(cherry picked from commit cb4fd4e3ca)
2025-07-25 16:42:12 +00:00
diniamo 8fa81f2c6c nixos/grafana: add openFirewall option
(cherry picked from commit 5bb944c6f5)
2025-07-25 16:14:53 +00:00
Martin Weinelt 268ecc7bb2
kea: 2.6.2 -> 2.6.3
https://downloads.isc.org/isc/kea/2.6.3/Kea-2.6.3-ReleaseNotes.txt

https://kb.isc.org/docs/cve-2025-32801
https://kb.isc.org/docs/cve-2025-32802
https://kb.isc.org/docs/cve-2025-32803

Fixes: CVE-2025-32801, CVE-2025-32802, CVE-2025-32803

(cherry picked from commit fde8885198)
2025-07-25 17:33:14 +02:00
Alyssa Ross ae4dffd28d
linux/common-config: enable AX25
This will allow dropping the linuxPackages_ham variant.  Fedora sets
these in their default kernel, so I don't anticipate any problem with
us doing the same.

Tested building linux_5_4, linux, and linux_latest on x86_64.

(cherry picked from commit d735743b39)
2025-07-24 15:45:19 +02:00
Wolfgang Walther aefcb0d50d
treewide: run nixfmt 1.0.0 2025-07-24 14:58:18 +02:00
Wolfgang Walther 9221850466
nixos/doc/wireless: fix comments
Those had been misplaced by nixfmt.

(cherry picked from commit 0f3f710c86)
2025-07-24 14:58:15 +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
Martin Weinelt 8fc5cfb293 nixos/tlsrpt: fix permissions for postfix
Same as with other services giving postfix access, this needs to happen
for the postfix user. Adding supplementary group permissions to the
systemd unit does not propagate to child processes that ultimately call
the unix domain socket.

(cherry picked from commit e48d12554c)
2025-07-24 01:09:37 +00:00
kiara 9748878fa6 nixos/woodpecker: fix documentation links (#427705)
(cherry picked from commit 103ee4e1cf)
2025-07-23 10:34:03 +00:00
Jörg Thalheim 1357ee16cb nixos/iio: add package option
this helps with overriding the iio package in situations where overlays
are ignored i.e. when the nixpkgs.pkgs option is used for performance.

In particular we want this for
https://github.com/FrameworkComputer/linux-docs/blob/main/framework12/nixOS.md#framework-12-nixos-tweaks

(cherry picked from commit 8489ccc731)
2025-07-21 18:43:20 +00:00
Kermina Awad b61c9eb6c1 nixos/plasma6: fix autorotation when IIO module is enabled
Plasma 6 requires the `qtsensors` package to be installed in order
for autorotation to work correctly. Simply enabling the IIO module
is not sufficient, although it's also required. Both are required
for autorotation to work correctly.

(cherry picked from commit 864ffcd1e1)
2025-07-21 18:43:12 +00:00
Connor Baker 4fd1cfd4c7 nixos/nix-required-mounts: add driverLink symlink target to NVIDIA defaults
Signed-off-by: Connor Baker <ConnorBaker01@gmail.com>
(cherry picked from commit 0b47ed1b35)
2025-07-21 17:16:44 +00:00
liberodark 04f62c8c0a peertube: remove spawn
(cherry picked from commit 1c1d6a725a)
2025-07-21 16:48:32 +00:00
Martin Weinelt da77d74e49
[Backport release-25.05] anubis: 1.19.1 -> 1.21.0 (#426666) 2025-07-19 19:39:05 +02:00
Adam C. Stephens ce76fbcae4
[Backport release-25.05] forgejo: 11.0.3 -> 12.0.0 (#426530) 2025-07-19 12:50:43 -04:00
Defelo 2f3b8e2fae
anubis: 1.19.1 -> 1.20.0
Changelog: https://github.com/TecharoHQ/anubis/releases/tag/v1.20.0
Diff: https://github.com/TecharoHQ/anubis/compare/v1.19.1...v1.20.0
(cherry picked from commit c11e60c8ea)
2025-07-19 15:20:29 +02:00
Maximilian Bosch cccca5d65f
Merge: [Backport release-25.05] matrix-synapse: 1.133.0 -> 1.134.0 (#426340) 2025-07-19 11:04:37 +02:00
dish e87c1114f4
forgejo: 11.0.3 -> 12.0.0
https://forgejo.org/2025-07-release-v12-0/

https://codeberg.org/forgejo/forgejo/milestone/12836
(cherry picked from commit 21e98fc8a9)
2025-07-18 20:18:41 -04:00
phaer f1ddf462ce virtualisation/disk-image: fix image.extension
(cherry picked from commit b033e0c4b6)
2025-07-18 18:35:44 +00:00
phaer 43e97212f6 openstack-image-zfs: drop ".root" suffix in generated image name
hydra-build-products is automatically updated with the right name, as
is image-info.json.

This breaks hardcoded uses of the filename, but ensures that all the
other outputs are consistent and image.filePath is correct

(cherry picked from commit 5aba7c7131)
2025-07-18 18:35:44 +00:00
phaer 3b593dd755 sd-image: Fix image.filePath directory prefix
(cherry picked from commit 037a064feb)
2025-07-18 18:35:44 +00:00
phaer f39940f568 amazon-image: fix image.extension value for vpc/vhd files
vpc files use the extension "vhd". `make-disk-image-nix` contains a
lookup table, but does not expose that. vpc is the only format
supported by the amazon image which is affected. Format and extension
are the same for raw and qcow2.

(cherry picked from commit 8cbc6d6da6)
2025-07-18 18:35:44 +00:00
Felix Bargfeldt b26179213a
[25.05] nixos/chhoto-url: init module (#426376) 2025-07-18 17:30:17 +02:00
Rafael Fernández López c9f2d52ace nixos/nvidia-container-toolkit: fix tests
(cherry picked from commit d287c86c08)
2025-07-18 13:32:52 +00:00
Defelo a2aec13e69
nixos/tests/chhoto-url: init
(cherry picked from commit b6ebd3bac9)
2025-07-18 15:18:38 +02:00
Defelo 6642acbb21
nixos/chhoto-url: init module
(cherry picked from commit 55e6f26bff)
2025-07-18 15:18:38 +02:00
transcaffeine de4f57e7bd matrix-synapse: 1.133.0 -> 1.134.0
Release notes: https://github.com/element-hq/synapse/releases/tag/v1.134.0
Full changelog: https://github.com/element-hq/synapse/compare/v1.133.0...v1.134.0

(cherry picked from commit d3bc50865f)
2025-07-18 10:47:48 +00:00
Wolfgang Walther ce9a9d5f40
[Backport release-25.05] firefly-iii-data-importer: 1.7.3 -> 1.7.6; nixosTests.firefly-iii-data-importer: Added meta.platforms so that tests are skipped appropriately (#425702) 2025-07-17 10:57:10 +00:00
Wolfgang Walther 3b2cd78737
[Backport release-25.05] limine: 9.4.0 -> 9.5.0, limine-install: fix profile enumeration (#425326) 2025-07-17 10:48:33 +00:00
Wolfgang Walther 5ca0104067
[Backport release-25.05] nixos/anubis: Apply some more hardening settings (#425135) 2025-07-17 10:44:53 +00:00
Jonas Heinrich 75e2580ed3
[Backport release-25.05] froide-govplan: 0-unstable-2025-01-27 -> 0-unstable-2025-06-25 (#425325) 2025-07-16 10:28:36 +02:00
Savyasachee Jha 50c8b3dec4 nixosTests.firefly-iii-data-importer: Added meta.platforms so that tests are skipped appropriately
(cherry picked from commit 2302a4bb5d)
2025-07-16 06:56:53 +00:00
Wolfgang Walther 10db57b501
[Backport release-25.05] nixos/fcitx5: fix ignoreUserConfig being ignored in some cases (#422688) 2025-07-15 15:58:19 +00:00
Aleksana 7853a4874e
[Backport release-25.05] nixos/k3s: fix typo (#424619) 2025-07-15 22:30:53 +08:00
sanana 5fc31ce1b8 limine-install: fix profile enumeration
Fixes #425158.

(cherry picked from commit 6baed48380)
2025-07-15 08:22:02 +00: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
Felix Singer 7c832ecc1c nixos/anubis: Apply some more hardening settings
Signed-off-by: Felix Singer <felixsinger@posteo.net>
(cherry picked from commit 959c8e9311)
2025-07-14 16:20:21 +00:00
Benedikt Peetz 67c932004a nixos/invidious-router: Add systemd dependency on network-online.target
Otherwise, the systemd service will reliably fail on a clean boot, as
invidious-router needs a set-up network connection before starting.

(cherry picked from commit fab364e89b)
2025-07-14 08:11:27 +00:00
Jost Alemann a91f59ad63 nixos/k3s: fix typo
(cherry picked from commit 3086227f72)
2025-07-12 14:46:24 +00:00
Jared Baur 1be849b881 nixos/nvidia-container-toolkit: add extraArgs option
(cherry picked from commit 73b4810ff3)
2025-07-11 00:06:48 +00:00
Morgan Helton 5a2700e8a8
sunshine: 2025.122.141614 -> 2025.628.4510
(cherry picked from commit a98748b83d)
2025-07-10 10:57:40 -04:00
Sizhe Zhao ed0bf75513
sunshine: handleTest -> runTest
Reference: https://github.com/NixOS/nixpkgs/issues/386873

(cherry picked from commit f34483be5e)
2025-07-10 10:57:32 -04:00
liberodark c41140025f nixos/peertube: fix crash when import video
(cherry picked from commit 481a3f2549)
2025-07-10 08:01:20 +00:00
Martin Weinelt 1c9bc79b61 nixos/postfix-tlspol: fix default settings and config reload
Reloading was insufficient for changing the dns resolver address, so we
make config changes a restart trigger instead.

(cherry picked from commit e57363be15)
2025-07-10 00:09:39 +00:00
Wolfgang Walther 993ef0a5c5
[Backport release-25.05] nixos/amdgpu: add overdrive and ppfeaturemask option (#423337) 2025-07-09 16:34:50 +00:00
Masum Reza 561ddf49c6
nixos/amdgpu: add overdrive and ppfeaturemask option
- `programs.corectrl.gpuOverclock.enable` -> `hardware.amdgpu.overdrive.enable`
- `programs.corectrl.gpuOverclock.ppfeaturemask` -> `hardware.amdgpu.overdrive.ppfeaturemask`
- `programs.tuxclocker.enableAMD` -> `hardware.amdgpu.overdrive.enable`

(cherry picked from commit c9f192da92)
2025-07-09 12:20:24 -04: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
Wolfgang Walther 9a4b3f880e
[Backport release-25.05] nixos/nextcloud: document nextcloud-occ command (#422741) 2025-07-08 09:30:29 +00:00
Morgan Jones 8c14393fb2
[Backport release-25.05] util-linux, kubernetes, k3s: drop util-linux.withPatches (#422587) 2025-07-06 16:26:11 -07:00
provokateurin 1c87566236 nixos/searx: move network.target from wantedBy to after
In 623664e84f this part was refactored,
however network.target does not make sense in wantedBy and must be part of after.

(cherry picked from commit bcc1b762e9)
2025-07-06 15:01:32 +00:00
Maximilian Bosch 4d26ca7439 nixos/redis: fix maintainers in test
Noticed while reviewing #422084 (I have `checkMeta = true;` enabled):

    - key 'meta.maintainers' has invalid value; expected listOf<attrsOf<any>>, got
               [
                 { /* flokli */ }
                 [
                   /* members of helsinki-systems */
                 ]
               ]
           , refusing to evaluate.

(cherry picked from commit 0c2e155107)
2025-07-06 09:09:49 +00: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
Taliyah Webb 696c2bd228 nixos/fcitx5: fix ignoreUserConfig being ignored in some cases
(cherry picked from commit 93b72119d8)
2025-07-05 11:02:22 +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
Morgan Jones adf964c0de kubernetes: use util-linuxMinimal instead of util-linux.withPatches
This, and commits to k3s and util-linux close #409339.
The util-linux.withPatches API was a temporary hack for the 25.05
release to fix Kubernetes, and is going away.

While we're at it, we should use util-linuxMinimal because we do not
need things such as systemd support for kubelet initialization.

(cherry picked from commit 949e299d24)
2025-07-05 02:24:36 +00:00
Maximilian Bosch fda50d6f3a nixos/postgresql: add section about pg_config
See https://discourse.nixos.org/t/i-cannot-for-the-life-of-me-find-the-package-that-has-pg-config/66244/4

I decided against doing this in its own nixpkgs manual: the line
to draw is quite blurry already (e.g. we have documented our package
removal policy in here as well) and having to check two manuals for a
single subsystem feels pretty annoying to me.

The relevant part - where to find pg_config - is written at the top. I
decided to give a bit more context about the way our packaging works
since I realized a few times now that I don't remember all the details
about the problems we had in the past and having to look up individual
commit messages for that isn't very productive.

(cherry picked from commit e031c5ff6b)
2025-07-03 17:44:10 +00:00
Wolfgang Walther aabee91c79
[Backport release-25.05] seafile: remove myself from maintainers (#421604) 2025-07-02 11:50:23 +00:00
Jörg Thalheim bb2e250b76
[Backport release-25.05] nixVersions.nix: 2.28.3 -> 2.28.4, 2.29.0 -> 2.29.1, 2.24.14 -> 2.24.15 (#420262) 2025-07-01 23:35:43 +02:00
Greizgh 0d428dab44 seafile: remove myself from maintainers
I do not use seafile anymore and won't spend energy working on it.

(cherry picked from commit fd3d596a1c)
2025-07-01 20:14:59 +00:00
Peter Marshall 8253d26e46 nixos/tests/systemd-initrd-credentials: init
(cherry picked from commit dd15d6c248)
2025-07-01 21:04:10 +03:00
Peter Marshall 96f0f8b632 nixos/systemd-stage-1: follow systemd /run propagation
We currently bypass systemd's switch-root logic by premounting
/sysroot/run. Make sure to propagate its sub-mounts with the recursive
flag, in accordance with the default switch-root logic.

This is required for creds at /run/credentials to survive the transition
from initrd -> host.

(cherry picked from commit 7d36daa76a)
2025-07-01 21:04:10 +03:00
Bogdan-Cristian Tătăroiu 35b1c349e3 nixos/systemd-initrd: Fix fsck.xfs failing due to missing sh
When running with a xfs root partition and using systemd for stage 1
initrd, I noticed in journalctl that fsck.xfs always failed to execute.

The issue is that it is trying to use the below sh interpreter:

`#!/nix/store/xy4jjgw87sbgwylm5kn047d9gkbhsr9x-bash-5.2p37/bin/sh -f`

but the file does not exist in the initrd image.

/nix/store/xy4jjgw87sbgwylm5kn047d9gkbhsr9x-bash-5.2p37/bin/**bash**
exists since it gets pulled in by some package, but the rest of the
directory is not being pulled in.

boot/systemd/initrd.nix mentions that xfs_progs references the sh
interpreter and seems to explicitly try to address this by adding
${pkgs.bash}/bin to storePaths, but that's the wrong bash package.

Update the `storePaths` value to pull in `pkgs.bashNonInteractive`
rather than `pkgs.bash`.

(cherry picked from commit 3332613add)
2025-07-01 15:57:07 +00:00
HE7086 e20c1021e3 nixos/prometheus-wireguard-exporter: add support for new flags
(cherry picked from commit ab2dc5c3f9)
2025-07-01 10:18:38 +00:00
Wolfgang Walther 06d883d093
[Backport release-25.05] nixos/prometheus-wireguard-exporter: Add a new option to export wireguard_latest_handshake_delay_seconds. (#421205) 2025-06-30 11:28:23 +00:00
Gautier DI FOLCO fa64557806 nixos/prometheus.alertmanagerIrcRelay: fix network-online.target ordering but not depending warning
(cherry picked from commit c689716d48)
2025-06-30 10:27:03 +00:00
Jeevan Shikaram 13877297e7 nixos/prometheus-wireguard-exporter: Add a new option to export wireguard_latest_handshake_delay_seconds.
(cherry picked from commit b10dabd009)
2025-06-30 10:25:58 +00:00
eljamm a0728cf64a
nixosTests.pixelfed.standard: handleTestOn -> runTestOn
(cherry picked from commit 0c50bbe465)
2025-06-29 07:39:42 -04:00
Martin Weinelt 5511e3836e
nixos/tests/postfix-tlspol: assert empty policies for localhost
(cherry picked from commit d0218043a9)
2025-06-29 00:29:45 +02:00
Martin Weinelt 5a50dd291e
nixos/postfix-tlspol: fix config reload
Since we only pass a symlink to ExecStart we need to pass the backing
file as a reload trigger.

(cherry picked from commit 7874cc6005)
2025-06-29 00:29:45 +02:00
Martin Weinelt d12dc3121b
nixos/postfix-tlspol: migrate to static user/group
This fixes postfix' membership in the postfix-tlspol group, since
memberships in a dynamically allocated group don't seem to work out.

Additionally this fixes a typo in the systemd hardening and the test now
prints the results of systemd-analyze security.

(cherry picked from commit df0eb78b31)
2025-06-29 00:29:44 +02:00