Commit Graph

31039 Commits

Author SHA1 Message Date
Peder Bergebakken Sundt
302b223beb
[Backport release-24.05] nixos/tailscale: document tailscale-autoconnect (#350140) 2024-11-14 01:42:24 +01:00
Sefa Eyeoglu
9256f7c71a
[Backport release-24.05] borgmatic-exporter: init at 0.2.5 (#329180) 2024-11-10 12:48:13 +01:00
phanirithvij
f12598eff2
nixos/swapspace: init module
Signed-off-by: phanirithvij <phanirithvij2000@gmail.com>
Co-authored-by: Luflosi <luflosi@luflosi.de>
(cherry picked from commit 80ea320fe7)
2024-11-07 13:14:06 +01:00
github-actions[bot]
5c5e9ea1fa
Merge release-24.05 into staging-next-24.05 2024-11-07 00:16:44 +00:00
John Titor
b924b0d1b3 nixos/amdvlk: don't set "amdgpu" xserver driver
Not related and this should never have been in the module in the first place.
Probably got in during a rebase.

(cherry picked from commit 5473874d08)
2024-11-06 11:05:52 +00:00
github-actions[bot]
d6eae6eae3
Merge release-24.05 into staging-next-24.05 2024-11-04 00:17:51 +00:00
Sandro
df9782b607
[Backport release-24.05] nixos/mediawiki: check if LocalConfig.php is valid syntax (#325261) 2024-11-03 21:28:07 +01:00
Yureka
e716bbbc22 tree-wide: switch initrd generators back to gnu cpio
Originally, we switched to bsdtar from libarchive to solve a reproducibility issue related to hardlinks

As of gnu cpio 2.14 the --ignore-dirnlink option is introduced and now included in --reproducible, which solves this issue

By switching back, we are in turn solving an issue in libarchive >=3.7.5 erroring out with "Error reading archive -: (null)"

Change-Id: Ib6140d599b6547d8e941b0251ce996e303c41fa6
(cherry picked from commit 0f216e2578)
2024-10-31 15:14:21 +00:00
teutat3s
a7c2804aa9 nixos/sway: workaround idle inhibit not working
in Firefox

Source:
https://www.reddit.com/r/swaywm/comments/1dqud2a/how_to_get_firefox_to_inhibit_idle_when_watching/
> Firefox supports the Wayaland inhibit protocol, but it attempts to use the DBus interfaces first. However, the gtk portal has an issue where it returns success even though the wlr portal/sway doesn't have an implementation for the inhibit method, see #465.

(cherry picked from commit 7e7a06994f)
2024-10-24 14:18:59 +00:00
Peder Bergebakken Sundt
6497e4e4b3 nixos/tailscale: document tailscale-autoconnect
(cherry picked from commit 233d422887)
2024-10-21 04:33:28 +00:00
Peder Bergebakken Sundt
6429b7b322 nixos/resilio: add package option
(cherry picked from commit f0ad87bdd7)
2024-10-15 18:39:11 +00:00
Nick Cao
3e133804e4
nixos/keycloak: link $out/lib to KC_HOME_DIR to fix loading optimized app image
Reference: https://www.keycloak.org/docs/latest/upgrading/index.html#additional-validations-on-the-optimized-startup-option
2024-10-10 19:32:05 -04:00
Marin
ffc03d2b46 tailscaled: after NetworkManager-wait-online
The wait will only be enabled on machines with NetworkManager enabled.

Closes #180175

(cherry picked from commit 0d822ccdbc)
2024-10-05 11:34:47 +00:00
Jonas Heinrich
17f958406c
nextcloud30: init at 30.0.0
(cherry picked from commit 1b121c1ea2)
2024-10-01 13:37:24 +02:00
⛧-440729 [sophie]
ced0da1e7e nixos/invidious: add options for configuring inv-sig-helper 2024-09-28 19:56:22 +02:00
Bjørn Forsman
7da1d417b3 nixos/influxdb2: wait until service is ready
Factor out part of the provisioning script into a
wait-until-service-is-ready script, and put it unconditionally in
front of ExecStartPost=, so that services that depend on influxdb2 are
not started until influxdb2 responds to requests.

Fixes https://github.com/NixOS/nixpkgs/issues/317017 ("Scrutiny tries to start before influxdb has started")

(cherry picked from commit 732d36522f)
2024-09-27 08:39:32 +02:00
Martin Weinelt
33fbc56f4d
[Backport release-24.05] nixos/printing: add option to disable browsed daemon (#344711) 2024-09-26 21:59:12 +02:00
seth
f1c0a9cab4 nixVersions.nix_2_18: 2.18.7 -> 2.18.8
Diff: https://github.com/NixOS/nix/compare/2.18.7...2.18.8
Fixes https://github.com/NixOS/nix/security/advisories/GHSA-6fjr-mq49-mm2c

(cherry picked from commit 0aed7f0d24)
2024-09-26 18:59:45 +00:00
Thomas Gerbet
48db5e72f2 nixos/printing: add option to disable browsed daemon
It is currently tied to `services.avahi.enable` which might not be
desirable.

With this change it is possible to disable the service with
`services.printing.browsed.enable = false`

(cherry picked from commit 981a63b005)
2024-09-26 18:45:28 +00:00
Adam C. Stephens
37df9bcf93
[Backport release-24.05] lxc/incus LTS upgrades: 6.0.1 -> 6.0.2 (#344337) 2024-09-25 13:19:57 -04:00
Franz Pletz
0f1657cd03
[Backport release-24.05] nixos/prometheus-smartctl-exporter: fix NVMe scanning (#343049) 2024-09-25 18:37:56 +02:00
Adam Stephens
5a084d21e8
incus-lts: 6.0.1 -> 6.0.2
https://discuss.linuxcontainers.org/t/incus-6-0-2-lts-has-been-released/21633
(cherry picked from commit ee30c817cb)
2024-09-24 22:19:00 -04:00
Rémi NICOLE
830f6d4a19
[Backport release-24.05] nixos/sssd: fix KCM to use new krb5 settings (#327930) 2024-09-24 14:32:50 +00:00
Arian van Putten
7faae2f631
[Backport release-24.05] amazon-ssm-agent: add the system's software to the path (#343104) 2024-09-24 10:33:01 +02:00
Arian van Putten
edfcc0c97b
[Backport release-24.05] amazon-init: include the general system's software and wrappers in PATH (#343105) 2024-09-24 10:32:20 +02:00
Jörg Thalheim
b34eac728a [release-24.05]: update nix-fallback-paths 2024-09-22 15:58:28 +02:00
Graham Christensen
b1d27e1322 amazon-init: include the general system's software and wrappers in PATH
It is surprising that software which was installed by the user at AMI
generation time isn't available to a script run over user data by
default.

When authoring user data to execute at startup, users will now have
more predictable access to baked-in software instead of an extremely
bare-minimum set currently there.

(cherry picked from commit 76b614be39)
2024-09-19 19:58:28 +00:00
Graham Christensen
e6fb8a4224 amazon-ssm-agent: add the system's software to the path
Follow up to #342584.

Similarly to that PR, it is surprising that software which was installed by the user isn't available to a script run over ssm by default.

When executing commands with ssm, users will now have more predictable access to baked-in software instead of an extremely bare-minimum set currently there.

(cherry picked from commit 7547a1f5f8)
2024-09-19 19:57:51 +00:00
Bjørn Forsman
04ba303d19 nixos/prometheus-smartctl-exporter: fix NVMe scanning
smartctl_exporter already runs with SupplementaryGroups "disk", which
gives full access to SATA drives, but NVMe devices are owned by
root:root, resulting in no access:

  [...] msg="Smartctl open device: /dev/nvme0 failed: Permission denied"

This patch introduces a "smartctl-exporter-access" supplementary
group, and an udev rule with setfacl to give the exporter access to NVMe
drives, without changing the base root:root ownership.

Fixes https://github.com/NixOS/nixpkgs/issues/210041

(cherry picked from commit 86a6ef5f15)
2024-09-19 15:29:32 +00:00
Julien Malka
2198681f51
[Backport release-24.05] nixos/systemd-boot: Fix regression in builder script (#342234) 2024-09-19 14:56:52 +02:00
Jean-François Roche
875e6ad20a nixos/systemd-boot: Fix regression in builder script
Avoid running Python scripts in the root of the package, as this
triggers `os.listdir` on the Nix store directory during import. This
operation can be time-consuming on large store directories
(see issue #283795 for more details).

The issue was initially fixed in #284153 but was reverted in #306339.

Co-authored-by: Sönke Hahn <soenkehahn@gmail.com>
(cherry picked from commit 251b0c958f)
2024-09-16 10:08:29 +02:00
Florian Agbuya
6b25604415 flarum: fix installation and migration logic
(cherry picked from commit 317a52a757)
2024-09-16 07:00:11 +00:00
Bjørn Forsman
6ecc647b4e nixos/ups: set env vars in the global environment
This allows using upsdrvctl interactively, which otherwise tries to use
a missing ups.conf in the Nix store, instead of the correct
/etc/nut/ups.conf.

(cherry picked from commit 1cb392fdcd)
2024-09-14 08:59:39 +02:00
Bjørn Forsman
7ea9a39b4d nixos/ups: deduplicate environment variables
No functional change, but more DRY.

(cherry picked from commit 801388a6fa)
2024-09-14 08:59:39 +02:00
Peder Bergebakken Sundt
cd51764d0a
[Backport release-24.05] Syncthing: implemented folder type (#340775) 2024-09-13 02:51:44 +02:00
Maximilian Bosch
f3762903d6
nixos/prometheus-exporters/pgbouncer: don't leak DB password into cmdline
Since `connectionStringFile` reads the file and puts it into the
invocation of the exporter, it's part of the cmdline and thus
effectively world-readable.

Added a new `connectionEnvFile` which is supposed to be an environment
file of the form

  PGBOUNCER_EXPORTER_CONNECTION_STRING=...

that will be added to the systemd service. The exporter will read the
connection string from that value.

(cherry picked from commit 862ecd674f)
2024-09-09 22:54:13 +02:00
Maximilian Bosch
1a6587231b
nixos/prometheus-exporters: fix assertions declared in exporter modules
And it turns out, the test was using a removed option all along 🙃

(cherry picked from commit 4980a7d938)
2024-09-09 22:34:44 +02:00
K900
0a00d66fe6 nixos-install: fail if we can't set up bootloader
(cherry picked from commit fa39e3d642)
2024-09-09 13:22:53 +00:00
Cat
f41a13fc1b nixos/syncthing: implement folder type (#308832)
* Syncthing: implemented folder type

* Syncthing: fix syntax (via @johnhamelink )

This commit should be rebased/squashed into the previous one if ofborg cleares it!

Co-authored-by: John Hamelink <me@johnhame.link>

---------

Co-authored-by: John Hamelink <me@johnhame.link>
(cherry picked from commit ed1b6699c0)
2024-09-09 13:08:01 +00:00
Peder Bergebakken Sundt
bdb9b5d94a
[Backport release-24.05] docs: fix Nvidia casing to be consistent across different places (#336574) 2024-09-08 00:12:00 +02:00
Florian Agbuya
c2a2bf70c1 flarum: disable automatic DB creation
(cherry picked from commit 1032b5fa95)
2024-09-07 15:43:50 +00:00
Florian Agbuya
0e59203469 flarum: fix flarum directory permissions
(cherry picked from commit 249dacfaa8)
2024-09-07 15:43:50 +00:00
Justinas Stankevicius
db4e63a4e2 nixos/prowlarr: set HOME for the service
(cherry picked from commit 6e14231e83)
2024-09-03 10:08:36 +00:00
Artturin
891f087836
[Backport release-24.05] nixos/telegraf: make sure ping executable is available when trying to ping (#338740) 2024-09-01 21:29:28 +03:00
Sandro
baca75692d
[Backport release-24.05] nixos/tsm-client: Fix multi-value dsm.sys options (#328031) 2024-09-01 18:11:53 +02:00
Shea Levy
fbbd9323de
[Backport release-24.05] nixos/ipu6: Don't build out-of-tree driver for kernels that have it (#332240) 2024-09-01 06:33:05 -04:00
Echo Nolan
43e77c3a5f nixos/telegraf: make sure ping executable is available when trying to ping
We need ping to be in PATH of the service otherwise it can't ping. This commit
adds it, conditional on one of the inputs being a ping task.

(cherry picked from commit 934a337a13)
2024-09-01 04:25:31 +00:00
Will Fancher
d829513235 nixos/iso-image: Compress squashfs with zstd 19
(cherry picked from commit 49192ef7a3)
2024-08-31 18:39:20 +00:00
Emily
e2b77fb94c
[24.05] backport fcgiwrap instances fix for local privilege escalation issue (#331465) 2024-08-31 16:38:03 +01:00
euxane
8931f18bfa nixos/fcgiwrap: add security advisory links to messages 2024-08-31 17:15:42 +02:00