Commit graph

34949 commits

Author SHA1 Message Date
Sarah Brofeldt
e9f2b975df nixos/gitlab: fix ardeterministic secret
Spelling error cropped up in the 24.11 backport only
2025-06-03 14:52:22 +02:00
Sandro Jäckel
6bd2e92c11
nixos/mediagoblin: fix initial media reprocessing with gmg
Running `mediagoblin-gmg reprocess initial` before would fail with
missing GST_PLUGIN_PATH and tools in PATH.

(cherry picked from commit 81d2a488e6)
2025-06-02 15:49:37 +02:00
Sandro Jäckel
3d129e705a
nixos/mediagoblin: fix gmg argument parsing
Before the argument to mediagoblin-gmg would be passed to the actual command
and the rest to sh which is obviously nonsense.

(cherry picked from commit dd63ca898e)
2025-06-02 15:49:01 +02:00
Wolfgang Walther
d56c496a68
[Backport release-24.11] nixos/ollama: Fix systemd service doesn't use AMD GPU (#406411) 2025-05-24 08:39:24 +00:00
Wolfgang Walther
ca9226122e
[Backport release-24.11] nixos/mailman: hyperkitty needs mailman-web-setup (#404430) 2025-05-24 08:31:04 +00:00
toborwinner
323f2d7bc6 nixos/specialisation: escape and restrict specialisation names
Prevent the specialisation names from containing a forward slash.
Also escape them to allow for spaces in specialisation names.

(cherry picked from commit 2b9fc0ccc5)
2025-05-17 17:47:49 +00:00
Martin Weinelt
192e75d6fe nixos/frigate: create model cache dir
In 0.15.1 frigate has a logic error that makes it not ensure the model
cache dir exists before using it.

A workaround has been committed for newer versions, so we can drop this
on the next release.

Fixes: #402813
(cherry picked from commit a74a23885d)
2025-05-13 19:26:24 +00:00
a
fee1b14d1c Resolves #405846
(cherry picked from commit 1d483cbef1)
2025-05-12 10:12:42 +00:00
Leona Maroni
d46405db38
[24.11] nixos/gitlab: add activeRecord key files (#405051) 2025-05-12 08:41:03 +02:00
Wolfgang Walther
f662d2cf80
.editorconfig: move subfolder config into separate .editorconfig files
This avoids paths in the top-level file getting out-of-sync, because the
.editorconfig files would be moved together with the files they target.

(cherry picked from commit c8d2eca963)
2025-05-08 09:06:29 +02:00
Leona Maroni
96dae1a8a7
nixos/gitlab: add activeRecord key files
GitLab 17.11 started using rails activeRecord encryption for some values.
Introduce new key files.

For the future there should also be an option to set multiple activeRecord
keys for rotation.

(manual backport from a95a530883 with diff behavior)
2025-05-07 22:42:18 +02:00
Alyssa Ross
28f90a1bf7 nixos/mailman: hyperkitty needs mailman-web-setup
qcluster won't be happy if it's started before the database migrations
have been run.

	12:25:47 [Q] ERROR Failed to pull task from broker
	Traceback (most recent call last):
	  File "/nix/store/w5ndmidmkiy02vvgl7cxx1fkzc1pichg-python3-3.12.9-env/lib/python3.12/site-packages/django/db/backends/utils.py", line 89, in _execute
	    return self.cursor.execute(sql, params)
	           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
	  File "/nix/store/w5ndmidmkiy02vvgl7cxx1fkzc1pichg-python3-3.12.9-env/lib/python3.12/site-packages/django/db/backends/sqlite3/base.py", line 328, in execute
	    return super().execute(query, params)
	           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
	sqlite3.OperationalError: no such table: django_q_ormq

(cherry picked from commit afdbf499ac)
2025-05-05 18:06:48 +00:00
Alexander Sieg
a589700467 nixos/snipe-it: clear and rebuild caches on startup
(cherry picked from commit 5205c8b5ca)
2025-04-29 19:36:56 +00:00
Wolfgang Walther
2ea6370e4f
[Backport release-24.11] home-assistant-custom-components.benqprojector: init at 0.1.3 (#401747) 2025-04-26 16:31:25 +00:00
Wolfgang Walther
f7cd0603d3
[Backport release-24.11] nixos/immich: restrict media filesystem permissions (#397140) 2025-04-26 16:10:44 +00:00
Maximilian Bosch
ce2c24086d
Merge: [Backport release-24.11] nixos/nextcloud: S3: Rename autocreate (a no-op) to verify_bucket_exists (#400857) 2025-04-26 11:37:23 +02:00
Stefan Wiehler
301574372d nixos/home-assistant: add custom components to used components query
There should be no need to add custom components without YAML configuration to
extraComponents for systemd service modifications to become effective (e.g.
serial access).

(cherry picked from commit 44dd157b6f)
2025-04-25 14:12:25 +02:00
Stefan Wiehler
07d62fef1a home-assistant-custom-components.benqprojector: init at 0.1.3
(cherry picked from commit 27eab49a9e)
2025-04-25 13:59:32 +02:00
Leona Maroni
4c8bce7994 nixos/gitlab: convert gitlab-registry-cert.service to oneshot
docker-registry.service has a `After` dependency on gitlab-registry-cert.
On the first start, docker-registry.service fails to start as it already
runs when gitlab-registry-cert.service starts up, and not when it finished.

(cherry picked from commit 50fc446be1)
2025-04-24 09:58:14 +02:00
Cassie Cheung
957ce46e2a
nixos/anubis: init module
(cherry picked from commit cadf4cfc83)
2025-04-23 13:33:02 +02:00
André Silva
5c3ce773b1 nixos/hyprland: fix call to wayland-session.nix
(cherry picked from commit 09879a452b)
2025-04-22 23:02:43 +00:00
Tom Hubrecht
4f2ffb6dc9 nixos/nextcloud: S3: Rename autocreate (a no-op) to verify_bucket_exists
C.f. https://github.com/nextcloud/documentation/issues/10436

Co-authored-by: Tom Herbers <mail@tomherbers.de>
Co-authored-by: Kate <26026535+provokateurin@users.noreply.github.com>
(cherry picked from commit 08e859c8e0)
2025-04-22 14:04:22 +00:00
Wolfgang Walther
1d02766500
[Backport release-24.11] nixos/wayland-session: fix conflicts between users (#394721) 2025-04-15 18:36:45 +00:00
Martin Weinelt
b17590193d
Backport #398396: make-initrd-ng: Restore stripped file permissions (#398397) 2025-04-13 18:10:46 +02:00
Will Fancher
1cd8c7fcfe nixos/shutdown: Create /run/initramfs with mode 0700 2025-04-13 12:02:35 -04:00
Benjamin Saunders
5f872dceb6 nixos/immich: restrict filesystem permissions
immich appears to create this directory with permissions 0755 by
default, which needlessly exposes user data to other processes.

(cherry picked from commit fd21ef2a65)
2025-04-08 15:32:02 +00:00
Jörg Thalheim
dc1d33c285 nixVersions.nix_2_24: 2.24.13 -> 2.24.14
Diff: https://github.com/NixOS/nix/compare/2.24.13...2.24.14
(cherry picked from commit ae8f07e1dd)
2025-04-07 13:23:41 +00:00
Wolfgang Walther
959ef9f938
[Backport release-24.11] nixos/dhcpcd: fix typo in documentation (#395710) 2025-04-05 19:40:09 +00:00
Neyts Zupan
16cf86bef7 paretosecurity: 0.0.96 -> 0.1.3
Also:
 * Fix PATH for systemd services
 * Make UI tests faster and more robust by setting low resolution
(cherry picked from commit 3c6b1cf6f6)
2025-04-04 12:50:10 +00:00
Vojtěch Káně
56dc1190e5 nixos/dhcpcd: fix typo in documentation
The manpage of dhcpcd says:

>If any interface reports a working carrier then dhcpcd will try to
>obtain a lease before forking to the background, otherwise it will fork
>right away.

(cherry picked from commit b25b9e656a)
2025-04-03 09:07:54 +00:00
Neyts Zupan
1150fd62a6 Take systemd configuration from upstream package instead of definiting
them in the nixos module.

(cherry picked from commit 6aaeae81ae)
2025-04-02 14:14:09 +00:00
Maximilian Bosch
d7b8c4d7aa nixos/nextcloud: check if ownership of config is correct
Follow-up on #169733

For `data`, Nextcloud checks on its own if everything is readable.
However, for `config` it's crucial that the ownership is actually
correct: otherwise, systemd-tmpfiles will refuse any operations inside
because of unsafe path transitions.

This can result in a subtly broken setup by the `override.config.php`
not being updated, but also not part of the system closure anymore
(another override.config.php is referenced now) which means it'll be
GCed eventually even though Nextcloud relies on it.

If this precondition is not met, the following error will be printed:

    nextcloud-setup-start[972]: /var/lib/nextcloud/config is not owned by user 'nextcloud'!
    nextcloud-setup-start[972]: Please check the logs via 'journalctl -u systemd-tmpfiles-setup'
    nextcloud-setup-start[972]: and make sure there are no unsafe path transitions.
    nextcloud-setup-start[972]: (https://nixos.org/manual/nixos/stable/#module-services-nextcloud-pitfalls-during-upgrade)

(cherry picked from commit 39dcdc5c9b)
2025-04-02 08:52:30 +00:00
Silvan Mosberger
14182c1970 treewide: Format all Nix files
Format all Nix files using the officially approved formatter,
making the CI check introduced in the previous commit succeed:

  nix-build ci -A fmt.check

This is the next step of the of the [implementation](https://github.com/NixOS/nixfmt/issues/153)
of the accepted [RFC 166](https://github.com/NixOS/rfcs/pull/166).

This commit will lead to merge conflicts for a number of PRs,
up to an estimated ~1100 (~33%) among the PRs with activity in the past 2
months, but that should be lower than what it would be without the previous
[partial treewide format](https://github.com/NixOS/nixpkgs/pull/322537).

Merge conflicts caused by this commit can now automatically be resolved while rebasing using the
[auto-rebase script](8616af08d9/maintainers/scripts/auto-rebase).

If you run into any problems regarding any of this, please reach out to the
[formatting team](https://nixos.org/community/teams/formatting/) by
pinging @NixOS/nix-formatting.

(branch-equivalent to commit 374e6bcc40)
2025-04-01 20:11:51 +02:00
phaer
18003272f1 repart: Enable custom --empty flags in initrd
By default, systemd-repart refuses to act on empty disk devices, i.e.
those without any existing partition table for safety reasons.

This behaviour can be customized via the `--empty` flag, which we now
expose via the module system. This makes to partition empty disks
on first boot.

(cherry picked from commit d2cadf484c)
2025-04-01 08:52:54 +00:00
Seth Flynn
ae711c3e33 nixos/wayland-session: fix conflicts between users
(cherry picked from commit 4df2726a5c)
2025-03-30 20:10:22 +00:00
Jörg Thalheim
1410e361f5 nix: update nix-fallback-paths to 2.24.13
(cherry picked from commit 49a708c3f7)
2025-03-28 01:20:46 +00:00
Weijia Wang
35760d5ff2
nixos/pixelfed: bump php version
(cherry picked from commit 9d71dc7005)
2025-03-24 17:35:57 +01:00
nixpkgs-ci[bot]
38a642b03b
[Backport release-24.11] mastodon: 4.3.4 -> 4.3.6 (#389693)
* mastodon: 4.3.4 -> 4.3.5

Changelog:
https://github.com/mastodon/mastodon/releases/tag/v4.3.5
(cherry picked from commit 796a82222c)

* mastodon: 4.3.5 -> 4.3.6

Changelog: https://github.com/mastodon/mastodon/releases/tag/v4.3.6
(cherry picked from commit 60d28783f6)

* nixos/mastodon: some formatting

(cherry picked from commit c06efc8927)

* mastodon: downgrade bundler version

---------

Co-authored-by: Izorkin <izorkin@elven.pw>
Co-authored-by: Kerstin Humm <kerstin@erictapen.name>
Co-authored-by: Thomas Gerbet <thomas@gerbet.me>
2025-03-22 18:11:27 +01:00
Neyts Zupan
22dae4e700 paretosecurity: 0.0.89 -> 0.0.91,, nixos/paretosecurity: add trayIcon option
(cherry picked from commit 8dbf318cea)
2025-03-21 10:38:48 +00:00
Neyts Zupan
507bf2030a paretosecurity: init at 0.0.86, nixos/paretosecurity: init 2025-03-19 09:39:33 +00:00
Michele Guerini Rocco
6363dc00a2
[Backport release-24.11] network: make network setup service do not depend on udev, and fix typo with greTunnels (#384965) 2025-03-18 23:54:31 +01:00
Florian Agbuya
f3e7800505 nixos/flarum: restart on package update
Ensures the Flarum service automatically restarts when its package is updated, preventing stale instances from running after upgrades.

(cherry picked from commit 8125e281fd)
2025-03-16 06:29:22 +00:00
Dmitry Chermnykh
591fdd30b2 nixos/plasma6: add qtimageformats to the requiredPackages
This is needed for qt6 apps to be able to work with certain image formats such as .webp and .avif

Closes https://github.com/NixOS/nixpkgs/issues/304523

(cherry picked from commit 8abd7b3220)
2025-03-16 08:57:00 +03:00
Seth Flynn
b7d8c89c0e
[Backport release-24.11] nixos/victorialogs: init module (#384903) 2025-03-15 11:41:24 -04:00
Wolfgang Walther
da4b122f63
[Backport release-24.11] nixos/postfixadmin: refactor, replace use of deprecated postgresql port option with new one, set -o pipefail (#386072) 2025-03-14 22:42:37 +00:00
ppom
2963d18378 nixos/slskd: remove useless inotify watches
Closes #389397

(cherry picked from commit 5611f102a2)
2025-03-14 13:12:02 +00:00
Michael Hoang
158f2133f9 nix-builder-vm: disable auto-optimise-store
This option is associated with corruption[1, 2] and is disabled by
default in Nix as it can cause significant slowdowns[3].

[1]: https://github.com/NixOS/nix/issues/7273
[2]: https://github.com/LnL7/nix-darwin/pull/1152
[3]: https://github.com/NixOS/nix/issues/462#issuecomment-378189808

(cherry picked from commit c0e0720c74)
2025-03-13 20:58:38 +05:30
Maximilian Bosch
9381b3e6a9
Merge: [Backport release-24.11] nixos/postgresql: fix merging of shared_preload_libraries option (#388776) 2025-03-11 14:11:29 +01:00
Atemu
ded28cefde
nixos/iosched: exclude loop devices by default (#388669) 2025-03-11 11:50:06 +01:00
Sandro
caa0fc3658
[Backport release-24.11] nixos/services.mysql: fix wait for galera cluster sync to be done (#388828) 2025-03-11 11:37:03 +01:00