Commit graph

51301 commits

Author SHA1 Message Date
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
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
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
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