1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 11:40:45 +00:00
Commit graph

6402 commits

Author SHA1 Message Date
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
zi3m5f f86645566d nixos/tests/systemd-nspawn-configfile: init
Test for presence of all specified options in the generated .nspawn
config file.
Additionally test for absence of misspelled and fixed option MachineID.
2023-06-12 12:08:39 +02:00
Martin Weinelt 3cd3713412
Merge pull request #237169 from mweinelt/evcc-0.118.0
evcc: 0.117.4 -> 0.118.0
2023-06-12 01:14:43 +02:00
Martin Weinelt fe2f291e17
Merge pull request #236757 from max-privatevoid/pam-kanidm
nixos/pam: support Kanidm
2023-06-11 20:22:00 +02:00
Max 7575e488de nixos/tests/kanidm: test posix user creation and login 2023-06-11 17:17:43 +02:00
Martin Weinelt 9c1e60ba7d
evcc: 0.117.4 -> 0.118.0
https://github.com/evcc-io/evcc/releases/tag/0.118.0

Use a more approriate charger state.
2023-06-11 12:41:53 +02:00
Robert Hensing 493b08c410
Merge pull request #237063 from roberth/fix-systemd-boot-test
nixos: Fix systemd-boot test
2023-06-10 19:10:05 +02:00
Robert Hensing 0c3f416096 nixosTests.nixos-rebuild-specialisations: Fix 2023-06-10 18:25:04 +02:00
Robert Hensing a54e7d299b nixosTests.systemd-boot.switch-test: Fix warnings 2023-06-10 17:51:44 +02:00
Robert Hensing 0d55eebcf5 nixosTests.systemd-boot.switch-test: Fix test
... by making the alternate configs available in machine's store.
2023-06-10 17:51:06 +02:00
Will Fancher 90d69b1634
Merge pull request #236388 from ElvishJerricco/sd-s1-networkd-stop-on-switch-root
systemd stage 1 networking: Stop systemd-networkd on switch-root
2023-06-10 00:35:56 -04:00
ajs124 bcb903cce8 nixos/tests/lvm2/thinpool: fix xfs creation on older kernels 2023-06-09 13:44:48 +02:00
ajs124 3bf06829ff nixos/tests/lvm2: also build for new LTS kernel 2023-06-09 13:44:32 +02:00
Ryan Lahfa a384c9b01d
Merge pull request #234030 from NixOS/cleanup-overlay-mounts
nixosTests: fix tests that relies on an empty rootfs using a bootloader
2023-06-08 18:20:23 +02:00
Raito Bezarius 89952f7bb6 nixosTests.luks: mount the host Nix store
Same rationale as in caf6f41e2e.
2023-06-08 16:56:07 +02:00
Raito Bezarius ff3936e14b nixos/tests/lvm2/systemd-stage-1: mount the host Nix store
Same rationale as in caf6f41e2e.
2023-06-08 16:56:04 +02:00
Raito Bezarius 59891e405d nixosTests.systemd-initrd-networkd-ssh: bootDevice -> rootDevice
Missed deprecation fixup during the bootDisk PR.
2023-06-08 16:56:01 +02:00
Raito Bezarius c1f0de6e20 nixosTests.systemd-initrd-luks-keyfile: mount the host Nix store
Same rationale as caf6f41e2e.
2023-06-08 16:55:58 +02:00
Raito Bezarius bbfedea0a1 nixosTests.systemd-initrd-luks-password: mount the host Nix store
Same rationale as caf6f41e2e.
2023-06-08 16:55:55 +02:00
Raito Bezarius efe64826c9 nixosTests.systemd-initrd-luks-tpm2: mount the host Nix store
Same rationale as caf6f41e2e.
2023-06-08 16:55:52 +02:00
Raito Bezarius e190364fd7 nixosTests.systemd-initrd-networkd-ssh: mount the host Nix store
Same rationale as caf6f41e2e.
2023-06-08 16:55:49 +02:00
Raito Bezarius db811f12eb nixosTests.systemd-initrd-swraid: mount the host Nix store
Same rationale as caf6f41e2e.
2023-06-08 16:55:45 +02:00
Raito Bezarius de7f3cb2fa nixosTests.systemd-initrd-luks-fido2: mount the host Nix store
Same rationale as caf6f41e2e.
2023-06-08 16:55:29 +02:00
Raito Bezarius 955a77e1c4 nixosTests.systemd-initrd-btrfs-raid: mount the host Nix store
Same rationale as caf6f41e2e.
2023-06-08 16:55:25 +02:00
Raito Bezarius caf6f41e2e nixosTests.initrd-luks-empty-passphrase: mount the host nix store
This is necessary because this test relies on switching the root fs to an empty one which
does not have a Nix store available in stage 1, therefore, we have to make this test
host-store only.

A better fix in the long term is to evaluate whether this is worth to enable a proper
Nix store image for it with EROFS?
2023-06-08 16:55:04 +02:00
Martin Weinelt 93d26ea597
Merge pull request #236534 from NixOS/home-assistant
home-assistant: 2023.5.4 -> 2023.6.0
2023-06-08 14:47:11 +02:00
Weijia Wang 0dfe118d22
Merge pull request #236259 from wegank/mongodb-drop
mongodb-4_2: drop
2023-06-08 14:40:30 +03:00
Will Fancher a9e34ff905 systemd stage 1 networking: Add network-pre to flush tests
This isn't actually wanted by any units by default.
2023-06-08 00:25:15 -04:00
Martin Weinelt 4540dad9e7
nixos/tests/home-assistant: Drop esphome, fix post-restart expectation
Mentioning esphome in the config is now causing an error. Check for the
backup module post-restart, not esphome.
2023-06-07 23:55:51 +02:00
aszlig c14dac6f25
Merge pull request #235972 (fix Taskserver test)
I'm merging this without review, since the tests run by ofborg are
succeeding. In addition to that, it's fixing a currently broken test so
the worst that could happen is that the test still does not work.
2023-06-06 17:55:22 +02:00
Weijia Wang 3f467ff45f mongodb-4_2: drop 2023-06-06 14:26:11 +03:00
github-actions[bot] de4f02a6c8
Merge master into staging-next 2023-06-05 12:01:12 +00:00
Florian Klink 4627ee741d
Merge pull request #234877 from ElvishJerricco/auto-format-and-resize-with-systemd
Auto format and resize with systemd
2023-06-05 12:25:02 +03:00
Will Fancher 5176a4f113 nixos: Use systemd-makefs for autoFormat 2023-06-04 22:57:20 -04:00
github-actions[bot] 4a640f8bb6
Merge master into staging-next 2023-06-05 00:02:32 +00:00
Sandro 793dd34507
Merge pull request #219602 from 999eagle/traefik-envsubst
nixos/traefik: add environmentFiles option
2023-06-05 00:36:43 +02:00
aszlig 9b6f9e4624
nixos/tests/taskserver: Fix build
The test fails because the way the configuration switch was implemented
back then was by using a dummy configuration and simply activating that
dummy configuration from within the test script.

Nowadays, this doesn't work anymore and fails to typecheck because the
dummy "newServer" will inherit the same value for networking.hostName,
which in turn will generate two attributes for "server":

  > testScriptWithTypes:43: error: Name "server" already defined on line 43
  > [no-redef]
  >     client1: Machine; client2: Machine; server: Machine; server: Machine;

Fortunately, we don't need to do workarounds like this anymore and there
is the "specialisation" option, which allows to do this in a less ugly
way (and it also works with mypy).

Signed-off-by: aszlig <aszlig@nix.build>
2023-06-04 23:14:07 +02:00
github-actions[bot] 22e7031b28
Merge master into staging-next 2023-06-04 18:00:59 +00:00
Julien Moutinho 50301d73e9 public-inbox: 1.8.0 -> 1.9.0
Co-authored-by: Alyssa Ross <hi@alyssa.is>
2023-06-04 13:09:28 +00:00
github-actions[bot] 6a837d8fb1
Merge master into staging-next 2023-06-03 06:01:11 +00:00
Gabriel Fontes 4ff3a5795b nixos/tests/prometheus-exporters: add graphite 2023-06-03 03:13:09 +00:00
github-actions[bot] 4b2e2c8b39
Merge master into staging-next 2023-06-03 00:02:20 +00:00
Pol Dellaiera 161182c362
Merge pull request #234987 from mmusnjak/apache-datasketches
apache_datasketches: init at 1.6.0
2023-06-02 21:55:22 +02:00
happysalada ee1c6053fb nixos/ntfy-sh: use dynamic user and add defaults 2023-06-02 15:22:14 -04:00
Marko Mušnjak aafe0f4314
apache_datasketches: init at 1.6.0
PostgreSQL extension providing approximate algorithms for
distinct item counts, quantile estimation and frequent items detection.
2023-06-02 21:03:19 +02:00
github-actions[bot] 6084eca7dc
Merge master into staging-next 2023-06-02 18:01:04 +00:00
Bobby Rong 7f96a08418
Merge pull request #235511 from bobby285271/upd/cinnamon-bpo
Cinnamon updates 2023-06-02
2023-06-02 21:25:34 +08:00
Mario Rodas 99287fe19b
Merge pull request #235450 from Luflosi/update/aaaaxy
aaaaxy: 1.3.538 -> 1.4.2
2023-06-02 07:42:12 -05:00
Bobby Rong 9f5dc9f927
nixos/tests/cinnamon: silence a warning and remove unused args
Module argument `nodes.machine.config` is deprecated. Use `nodes.machine` instead.
2023-06-02 19:51:12 +08:00
github-actions[bot] 1625d790e1
Merge staging-next into staging 2023-06-02 06:01:45 +00:00