Commit Graph

34015 Commits

Author SHA1 Message Date
rnhmjoj
7d263715bd nixos/fakeroute: run as unprivileged user 2023-06-20 01:12:04 +00:00
happysalada
97f556cac1 installer: remove unused with 2023-06-19 13:12:04 -04:00
happysalada
31342eea54 installer: remove reference to non existing doc option 2023-06-19 13:12:04 -04:00
pennae
c8b4e5d557
Merge pull request #237557 from pennae/dedocbookify-nixos
nixos/doc: dedocbookify
2023-06-19 14:05:03 +02:00
Florian Klink
1272a034f0
Merge pull request #238396 from R-VdP/fsck_path_fix
nixos/systemd: Make the fsck unit depend only on FS packages.
2023-06-19 12:58:27 +03:00
Weijia Wang
a9f1512f81
Merge pull request #238428 from markuskowa/upd-snapper
snapper: 0.10.4 -> 0.10.5
2023-06-19 07:16:44 +03:00
Joscha
5e4ec14596 nixos/grafana: update and add settings
I went through all categories that were already present in the grafana
module and added most options from the official docs at
https://grafana.com/docs/grafana/v9.5/setup-grafana/configure-grafana/

I also modified the descriptions of some existing options to match the
official docs more closely.
2023-06-18 22:23:48 +02:00
Joscha
2f68d8cb10 nixos/grafana: reformat 2023-06-18 22:23:39 +02:00
Markus Kowalewski
42a6b41e33
nixos/snapper/test: fix, make compliant with new config scheme 2023-06-18 16:20:31 +02:00
Ilan Joselevich
c8afc7dd83
Merge pull request #238193 from MatthewCash/master
nixos/kmscon: disable reload-systemd-vconsole-setup service
2023-06-18 16:18:43 +03:00
Ryan Lahfa
8f83962b34
Merge pull request #238289 from NixOS/netdata-fix 2023-06-18 15:10:33 +02:00
Bobby Rong
34c861d69c
Merge pull request #238384 from bobby285271/fix/pantheon-sessionCommands
nixos/pantheon: allow excluding pantheon-agent-geoclue2
2023-06-18 19:23:09 +08:00
r-vdp
c3fa4f9170
nixos/systemd: Make the fsck unit depend only on FS packages.
This means that this unit no longer need to be rebuilt when the system path is changed.
2023-06-18 12:46:13 +02:00
Bobby Rong
013bb477b4
nixos/pantheon: allow excluding pantheon-agent-geoclue2
Bash will raise syntax error for sessionCommands if sessionPath is empty.
2023-06-18 17:23:57 +08:00
Maximilian Bosch
30c0a2f738
Merge pull request #238250 from Ma27/nextcloud-declarative-test-fix
nixos/tests/nextcloud: fix more issues related to redis tests
2023-06-18 11:14:54 +02:00
Pol Dellaiera
f6e54f4eb8
Merge pull request #192889 from pbsds/code-server-ext-compat
code-server: add vscode-with-extensions compatibility
2023-06-18 09:12:59 +02:00
Peder Bergebakken Sundt
53077eb1be code-server: add vscode-with-extensions compatibility 2023-06-17 23:14:50 +02:00
Emily
187729fe5d
Merge pull request #233324 from R-VdP/fwupd_1_9_1
fwupd: 1.8.15 -> 1.9.2
2023-06-17 22:55:59 +02:00
Vladimír Čunát
6d80b598ef
Merge #237233: staging-next 2023-06-11 2023-06-17 18:53:26 +02:00
Raito Bezarius
2d7e29b60e nixos/netdata: fix claim_token_file -> claimTokenFile
It was forgotten in afc6f0d93b.
2023-06-17 17:51:45 +02:00
Pol Dellaiera
2028c38a83
Merge pull request #238083 from deinferno/tailscale-kmod
nixos/tailscale: fix ipv6 nat (v6nat) support
2023-06-17 16:15:17 +02:00
Ryan Lahfa
3d941b6be8
Merge pull request #236656 from nikstur/qemu-vm-persistent-block-device-names 2023-06-17 14:52:26 +02:00
Ryan Lahfa
7d9cd2a23e
Merge pull request #233035 from NixOS/kexec-test 2023-06-17 14:51:57 +02:00
Maximilian Bosch
cac7282c17
nixos/tests/nextcloud: fix more issues related to redis tests
* Ensure that the redis cache is actually used in the "trivial" case
  (`with-postgresql-and-redis`)
* Test against all Nextcloud versions we've packaged
* Actually set a secret to make sure that the provided secret is
  properly read by Nextcloud.
* Add myself as maintainer to the secret-test to make sure that I don't
  miss any more changes like this that could break the functionality of
  that feature.
2023-06-17 14:04:44 +02:00
github-actions[bot]
f300d1d5c2
Merge master into staging-next 2023-06-17 12:01:26 +00:00
Alyssa Ross
18f2be2e56 nixos/public-inbox: require that URL be non-empty
public-inbox-init doesn't work if passed an empty URL.
2023-06-17 07:57:27 +00:00
Vladimír Čunát
41d7e84dd8
Merge branch 'master' into staging-next
Trivial conflict:
 	nixos/doc/manual/release-notes/rl-2311.section.md
2023-06-17 07:46:50 +02:00
Matthew_Cash
ae234ed1ab
nixos/kmscon: disable reload-systemd-vconsole-setup service 2023-06-16 19:12:07 -07:00
Robert Hensing
8f31bff794 nixos/nixpkgs: Don't check when _module.args.pkgs is set 2023-06-16 22:08:16 +02:00
Robert Hensing
a742767baf nixos/nixpkgs: Make default Nixpkgs lazy when overridden 2023-06-16 21:46:26 +02:00
Maximilian Bosch
2f9c0ffde8
Merge pull request #237736 from Ma27/bump-nextcloud
nextcloud27: init
2023-06-16 19:51:28 +02:00
Raito Bezarius
627a8838fa nixosTests.kexec: do not use module argument config
It is deprecated now.
2023-06-16 19:43:40 +02:00
Raito Bezarius
7088e386ff nixosTests.kexec: reconnect properly after 2nd kexec
By some miracle, before, it was possible to reconnect to the `node1` without
doing any relevant dance.

But now we are direct booting (¿), it seems like we need to do the right things.

This introduces a `check_output` flag for `execute` because we do not want to steal the
messages from the backdoor service as we might execute the kexec too fast compared
to when we will reconnect.

Therefore, we will let the message in the pipe if needed.
2023-06-16 19:43:40 +02:00
Raito Bezarius
85c8cc7ce9 nixosTests.kexec: do not use bootloader
There's no reason to use a bootloader when testing kexec, this is a feature
that reboots *directly* in the kernel, if anything, we should just direct boot the
kernel and reboots in the kernel.

A bootloader test really makes sense to test "default" systemctl kexec behavior which is already broken
because systemctl kexec will read the ESP to determine what to kexec by default.
2023-06-16 19:43:40 +02:00
nikstur
0bdba6c99b nixos/qemu-vm: use persistent block device names
This change removes the bespoke logic around identifying block devices.
Instead of trying to find the right device by iterating over
`qemu.drives` and guessing the right partition number (e.g.
/dev/vda{1,2}), devices are now identified by persistent names provided
by udev in /dev/disk/by-*.

Before this change, the root device was formatted on demand in the
initrd. However, this makes it impossible to use filesystem identifiers
to identify devices. Now, the formatting step is performed before the VM
is started. Because some tests, however, rely on this behaviour, a
utility function to replace this behaviour in added in
/nixos/tests/common/auto-format-root-device.nix.

Devices that contain neither a partition table nor a filesystem are
identified by their hardware serial number which is injecetd via QEMU
(and is thus persistent and predictable). PCI paths are not a reliably
way to identify devices because their availability and numbering depends
on the QEMU machine type.

This change makes the module more robust against changes in QEMU and the
kernel (non-persistent device naming) and by decoupling abstractions
(i.e. rootDevice, bootPartition, and bootLoaderDevice) enables further
improvement down the line.
2023-06-16 19:36:03 +02:00
pennae
6fcb6eee77 nixos/doc: set meta generator for html manuals properly
we no longer have to look like docbook-xslt generates our manuals
exclusively, so let's put something useful in there instead.
2023-06-16 19:26:23 +02:00
pennae
426903d2fb nixos/manual: remove docbook intermediates
they're no longer used for anything.
2023-06-16 19:26:23 +02:00
Nick Cao
c72f24ec26
Merge pull request #237933 from pbek/feature/qownnotes-tests
qownnotes: add tests
2023-06-16 06:47:48 -06:00
deinferno
26ff15b981
nixos/tailscale: fix ipv6 nat (v6nat) support 2023-06-16 12:18:55 +00:00
Maximilian Bosch
3df3a89892
nixos/nextcloud: fix declarative cache configuration
It's supposed to be `memcache.distributed`, not an associative PHP array
named `memcache` with a key `distributed`.

This was probably never caught because the initial `grep -q` check in
the test was invalid: `redis-cli` prints nothing if no keys can be found
when not writing to a tty apparently.
2023-06-16 14:11:38 +02:00
Maximilian Bosch
5a2769d981
nextcloud27: init
Fixes #237560
2023-06-16 14:11:38 +02:00
github-actions[bot]
ebaef3ce4c
Merge master into staging-next 2023-06-16 12:01:08 +00:00
Charles Hall
370f3e4883 nixos/lemmy: remove option removed upstream 2023-06-16 05:59:32 -04:00
Ryan Lahfa
a056d3567c
Merge pull request #236279 from minijackson/netbox-3.5.3 2023-06-16 11:49:13 +02:00
Ryan Lahfa
afc6f0d93b
Merge pull request #228479 from zimbatm/netdata-auto-claim 2023-06-16 11:30:30 +02:00
Patrizio Bekerle
fd800d851f
qownnotes: add tests 2023-06-16 08:20:32 +02:00
github-actions[bot]
af7beed7be
Merge master into staging-next 2023-06-16 06:01:09 +00:00
Will Fancher
e57b65abbb
Merge pull request #238021 from dcarosone/empty-zpool-name-assertion
nixos/zfs: assert that pool names are not empty
2023-06-15 23:21:07 -04:00
Daniel Carosone
86ecee627a typo 2023-06-16 12:25:34 +10:00
Daniel Carosone
2dcb1b3ed7 nixos/zfs: assert that pool names are not empty
a zfs fileSystems entry with an absolute (e.g. device) path rather than
a zfs dataser is parsed as an empty pool name, causing a doomed-to-fail
import job to be created as a boot dependency. Catch this as an assertion
2023-06-16 10:40:09 +10:00
github-actions[bot]
839c033ffb
Merge master into staging-next 2023-06-16 00:02:18 +00:00
Maciej Krüger
95c729c030
Merge pull request #223952 from m-bdf/fix-cfs-zen-tweaks
Fix cfs-zen-tweaks
2023-06-15 21:56:00 +02:00
Jörg Thalheim
4f992e8da0
Merge pull request #237840 from lilyinstarlight/fix/systemd-initrd-vconsole-test
nixos/tests/systemd-initrd-vconsole: fix test and improve reliability
2023-06-15 19:41:08 +01:00
github-actions[bot]
036d56d643
Merge master into staging-next 2023-06-15 12:01:17 +00:00
Charles Hall
af585658b8 nixos/lemmy: reduce moving parts 2023-06-15 06:56:56 -04:00
Charles Hall
fa9306c041 nixos/lemmy: allow overriding packages 2023-06-15 06:56:56 -04:00
Charles Hall
b1853ecfcd nixos/lemmy: only use env var when instructed
Lemmy checks the environment variable before the configuration file;
i.e. if the file is used to configure the database but the environment
variable is set to anything, the connection will fail because it'll
ignore the file. This was the previous behavior.

Now, the environment variable will be unset unless the user explicitly
chooses to set it, which makes the file-based configuration function
correctly. It's also possible to manually set the environment variable,
which has the major advantage of working around [this issue][0], which
prevents certain setups from working.

[0]: https://github.com/LemmyNet/lemmy/issues/2945
2023-06-15 06:56:56 -04:00
Charles Hall
dd0b5a7e08 nixos/lemmy: warn for option removed upstream
Also hide it since it shouldn't be used.
2023-06-15 06:56:56 -04:00
Lily Foster
9fb9774d93
nixos/tests/systemd-initrd-vconsole: fix test and improve reliability 2023-06-15 06:48:05 -04:00
Lily Foster
f1f0d4fbdd
nixos/test-driver: fix timeout option for wait_for_console_text 2023-06-15 06:47:49 -04:00
Carl Richard Theodor Schneider
59207cc930 nixos/adguardhome: Add allowDHCP option
This option conditionally adds the `CAP_NET_RAW` capability to the service,
which is mandatory for enabling the integrated DHCP server.
It also adds another test case to validate that the DHCP server successfully
provides IP addresses to clients.

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2023-06-15 12:27:35 +02:00
Jörg Thalheim
23ef0fdbf7
Merge pull request #237793 from Mic92/nix-ld
nix-ld: 1.1.0 -> 1.2.1
2023-06-15 08:51:56 +01:00
Jörg Thalheim
5ac7371bd1 nixos/nix-ld: use mkPackageOptionMD 2023-06-15 09:47:26 +02:00
Jörg Thalheim
b60f21e135 nixos/nix-ld: also include ld.so in nixos profile 2023-06-15 09:47:25 +02:00
Jörg Thalheim
f3ae11b096 nixos/nix-ld: also test NIX_LD fallback 2023-06-15 09:47:25 +02:00
r-vdp
52214d7f38
fwupd: 1.8.15 -> 1.9.1
Release notes: https://github.com/fwupd/fwupd/releases/tag/1.9.1
2023-06-15 09:33:12 +02:00
github-actions[bot]
a5a4b79b0d
Merge master into staging-next 2023-06-15 06:01:39 +00:00
Bobby Rong
6a00501dfa
Merge pull request #235371 from bobby285271/upd/cinnamon
Cinnamon 5.8
2023-06-15 09:41:41 +08:00
github-actions[bot]
c2fa140937
Merge master into staging-next 2023-06-15 00:02:27 +00:00
Lily Foster
b5cc73db7d
nixos/version: remove nixpkgs commit rev from initrd
This avoids unnecessary initrd rebuilds when nothing in the initrd would
have changed aside from the nixpkgs revision.
2023-06-14 16:57:34 -04:00
Silvan Mosberger
746e3349f8
Merge pull request #236025 from GaetanLepage/invidious-restart 2023-06-14 21:18:55 +02:00
github-actions[bot]
0f19fc4c44
Merge master into staging-next 2023-06-14 18:01:25 +00:00
Pol Dellaiera
f45bee3f4d
Merge pull request #237003 from pacien/ddclient-remove-ipv6-opt
nixos/ddclient: remove obsolete ipv6 option
2023-06-14 19:57:34 +02:00
Jacek Galowicz
0b62a4642d
Merge pull request #237475 from tbaggaley/master
test-driver: respect timeout in wait_until_fails
2023-06-14 17:59:49 +02:00
Jappie Klooster
5c4ae23ec0 nixos/keter: Run nixpkgs-fmt 2023-06-14 11:56:35 -04:00
Jappie Klooster
3f2f5bea96 nixos/keter: 2.0 -> 2.1
keter 2.1 now can log to stderr instead of file rotation.
Which is faster and more reliable.
These changes support that.

Announcement:
https://discourse.haskell.org/t/keter-2-1-0-released/6134

fix test by disabling log rotation

run nixpkgs fmt

move comment right before L37

run nixpkgs format on test

Add overridable default configuration

depracate keterRoot and use root, same for package

split doc lines

use lib.getExe to get keter binary

put mkRenamedOptionModule on one line
2023-06-14 11:54:03 -04:00
Sandro
60d31a2a46
Merge pull request #207646 from Enzime/vsce/test-remote-ssh 2023-06-14 17:05:32 +02:00
Gaetan Lepage
2e582d4edc nixos/invidious: add automaticRestart option 2023-06-14 16:19:40 +02:00
ajs124
85fe3cded5
Merge pull request #231148 from 0x4A6F/master-coturn
coturn: 4.6.1 -> 4.6.2
2023-06-14 14:54:39 +02:00
Janne Heß
1ee0ab1b79
Merge pull request #237720 from NixOS/swap-dry-activate
switch-to-configuration.pl: fix inverted dry-activate logic for swap
2023-06-14 14:45:35 +02:00
github-actions[bot]
be1f07fc6e
Merge master into staging-next 2023-06-14 12:01:12 +00:00
Dmitry Ivankov
ccdd853b64 23.05 changelog typo fix: buildFHSEnvChrootenv -> buildFHSEnvChroot 2023-06-14 07:52:56 -04:00
Maximilian Bosch
d7ac3423d3
Merge pull request #235387 from doronbehar/nixos/nextcloud.adminpassFile
nixos/nextcloud: Mention that adminpassFile is only used on startup
2023-06-14 12:41:35 +02:00
Wout Mertens
a97fe8990d
switch-to-configuration.pl: fix inverted dry-activate logic for swap 2023-06-14 12:11:45 +02:00
Bobby Rong
30d897c0ff
nixos/cinnamon: enable touchegg by default
Needed for gesture support.
2023-06-14 15:48:15 +08:00
Bobby Rong
664601d819
nixos/cinnamon: enable switcherooControl by default
xapp-gpu-offload-helper looks for this.
2023-06-14 15:48:15 +08:00
Bobby Rong
bc559b4ca3
nixos/cinnamon: install mint-l by default
This is part of Linux Mint 21.2.
2023-06-14 15:48:15 +08:00
Bobby Rong
e0034fb284
cinnamon.mint-artwork: 1.7.3 -> 1.7.5
Read debian/changelog for what is changed.
2023-06-14 14:14:57 +08:00
github-actions[bot]
bdc9d2055e
Merge master into staging-next 2023-06-14 00:02:31 +00:00
0x4A6F
144ef637a6
nixosTests.coturn: wait_for_open_port 2023-06-13 23:21:37 +02:00
Pol Dellaiera
7907dd9d6b
Merge pull request #235924 from Stunkymonkey/remove-then-{}
treewide: use lib.optionalAttrs instead of 'then {}'
2023-06-13 20:14:58 +02:00
github-actions[bot]
f29c608f98
Merge master into staging-next 2023-06-13 18:01:32 +00:00
Pol Dellaiera
4ab538636f
Merge pull request #237545 from drupol/openvscode-server/bump-june-2023
openvscode-server: 1.78.2 -> 1.79.0
2023-06-13 17:55:46 +02:00
pennae
f52f531a4e nixos/make-options-doc: deprecate docbook outputs
they're no longer necessary for us and will almost definitely start to
rot now (like commonmark and asciidoc outputs did previously). most
existing users seem to take the docbook output and run it through pandoc
to generate html, those can easily migrate to use commonmark instead.
other users will hopefully pipe up when they notice that things they rely
on are going away.

optionsUsedDocbook has only been around for one release and only exposed
to allow other places to generate warnings, so that does not deserve
such precautions.
2023-06-13 16:56:32 +02:00
pennae
20152b4269 nixos/doc: remove docbook options compatibility
no longer needed or useful, and may even produce false positives now
that markdown is the default language for option docs.
2023-06-13 16:56:31 +02:00
pennae
1418c986b0 nixos/make-options-doc: remove options postprocessing
with everything being rendered from markdown now we no longer need to
postprocess any options.xml that may be requested from elsewhere. we'll
don't need to keep the module path check either since that's done by
optionsJSON now.
2023-06-13 16:56:31 +02:00
pennae
af1f07ff03 nixos/make-options-doc: check for manual paths in options.json
since we no longer use the docbook path the check there will no longer
fire. add one to optionsJSON to not lose this functionality.
2023-06-13 16:56:31 +02:00
pennae
34eeac5544 nixos-render-docs: default to markdown for options
docbook is now gone and we can flip the defaults. we won't keep the
command line args around (unlike the make-options-docs argument) because
nixos-render-docs should not be considered an exposed API.
2023-06-13 16:56:31 +02:00
pennae
c01244394c nixos/make-options-doc: force markdownByDefault
with docbook no longer supported we can default to markdown option docs.
we'll keep the parameter around for a bit to not break external users
who set it to true. we don't know of any users that do, so the
deprecation period may be rather short for this one.
2023-06-13 16:56:30 +02:00
pennae
0997ae1903 nixos/manual: disallow docbook option docs
it's been long in the making, and with 23.05 out we can finally disable
docbook option docs and default to markdown instead. this brings a
massive speed boost in manual and manpage builds, so much so that we may
consider enabling user module documentation by default.

we don't remove the docbook support code entirely yet because it's a lot
all over, and probably better removed in multiple separate changes.
2023-06-13 16:56:30 +02:00