about summary refs log tree commit diff
path: root/nixos/lib
AgeCommit message (Collapse)AuthorFilesLines
2024-03-01nixos/lib/test-driver: make the warning message more noticeableK9001-1/+6
2024-02-29Merge pull request #292189 from nagisa/fixes-systemd-upheldBy-propagationFranz Pletz1-8/+8
2024-02-29systemd: fix propagation of upheldBy option to unitsSimonas Kazlauskas1-8/+8
2024-02-28Merge pull request #291544 from K900/ovmf-oofK9003-105/+58
nixos/tests: drop LegacyStartCommand
2024-02-28nixos/lib/test-driver: provide legacy path for ↵K9002-2/+38
create_machine({"startCommand": "..."})
2024-02-27Merge pull request #290946 from ju1m/systemd-option-listWill Fancher1-8/+2
nixos/systemd: merge unit options as lists when at least one value is a list
2024-02-27Merge pull request #285401 from sdht0/systemd-boot-xbootldrWill Fancher1-16/+39
nixos/systemd-boot: Add support for an XBOOTLDR partition
2024-02-27nixos/lib/testing: remove yet another source of unnecessary test rebuildsK9001-0/+1
2024-02-27nixos/lib/test-driver: drop LegacyStartCommand, clean up create_machine APIK9003-104/+22
We can finally do this now that it's no longer used.
2024-02-27lib/test-driver: don't swallow qemu stderrK9001-1/+0
2024-02-27nixos/lib/testing: remove another source of unnecessary test rebuildsK9001-1/+4
2024-02-26nixos/lib/make-disk-image: Add ability to setup an XBOOTLDR partitionSiddhartha1-16/+39
2024-02-25Merge pull request #284874 from shlevy/ovmf-msAdam C. Stephens1-0/+3
Enable MS-compatible secure boot with OVMF
2024-02-25nixos/systemd: merge unit options as lists when at least one value is a listJulien Moutinho1-8/+2
2024-02-23nixos/testDriver: remove pinned mypy python versionMichael Schneider1-1/+0
2024-02-15OVMF: Add test with secure boot enabledShea Levy1-0/+3
Co-authored-by: Arthur Gautier <arthur.gautier@arista.com>
2024-02-14nixos/systemd: Support notify-reload service TypeSilvan Mosberger1-1/+1
Support for this was added in systemd 253: https://github.com/systemd/systemd/releases/tag/v253
2024-02-10reviewSimonas Kazlauskas1-7/+1
2024-02-10systemd: add support for upholds and upheldBySimonas Kazlauskas2-1/+32
2024-01-30nixos/utils: fix stack overflow in genJqReplacementSnippet (#284027)Yureka1-0/+1
When the input contains derivations, don't attempt to recurse into them
2024-01-26nixos/test-driver: blackK9001-2/+4
2024-01-26Merge pull request #262772 from RaitoBezarius/qemu-vm/wait-for-eventJacek Galowicz1-0/+24
nixos/lib/test-driver: add `wait_for_qmp_event`
2024-01-25nixos/lib/test-driver: add `wait_for_qmp_event`Raito Bezarius1-0/+24
Adds a function to wait for a new QMP event with a model filter so that you can expect specific type of events with specific payloads. e.g. a guest-reset-induced shutdown event.
2024-01-19Merge pull request #279170 from SuperSandro2000/nixos-repl-libRobert Hensing1-0/+1
nixos-rebuild: add lib to repl to make debugging even easier
2024-01-18systemd-lib: fix automount generation after 9fbf82d9cb48K9001-5/+4
This one got missed in the refactor.
2024-01-17Merge pull request #266370 from SuperSandro2000/systemd-install-wantedbyWill Fancher1-30/+29
systemd-lib: add Install WantedBy section to make units similar to upstream ones
2024-01-15nixos: Expose lib attribute on configuration for replRobert Hensing1-0/+1
2024-01-13Merge pull request #256709 from colemickens/make-squashfs-skip-compressionRyan Lahfa1-1/+2
nixos/lib/make-squashfs.nix: allow disabling compression
2024-01-12Merge pull request #263658 from siriobalmelli-foss/sb/zfs-imageRyan Lahfa1-1/+4
openstack-image-zfs and make-single-disk-zfs-image: optionally specify qemu instance memory
2024-01-12nixos/lib/test-driver: add setuptools build depK9001-1/+5
2024-01-07nixos/lib/make-squashfs.nix: allow disabling compressionCole Mickens1-1/+2
2024-01-02systemd-lib: add Install WantedBy section to make units similar to upstream onesSandro Jäckel1-30/+29
and make them better grepable
2023-12-26Merge staging-next into staginggithub-actions[bot]1-2/+7
2023-12-26nixos/lib/make-disk-image: Create build products metadataMartin Weinelt1-2/+7
For hydra to expose built images for direct download, listing the relevant files in nix-support/hydra-build-products is required.
2023-12-21treewide: don't use python3Minimal where it is not requiredSandro Jäckel1-1/+1
Building a python environment with python3Minimal requires hydra to bootstrap pip and build all packages used in the environment which would otherwise not be built. This reduces cache re-use and duplicates things. Also common dependencies normally included in python itself are not properly checked and can cause hard to debug errors because everyone just assumes those modules are there.
2023-12-14Merge pull request #267937 from SomeoneSerge/fix/test-driver-activestateJacek Galowicz1-2/+30
nixos/lib/test-driver: make wait_for_unit ask for ActiveState only
2023-11-18nixos/networkd: add [IPVLAN] and [IPVTAP] configuration options to ↵Philip Taron1-0/+6
systemd.netdev files [IPVLAN](https://www.freedesktop.org/software/systemd/man/latest/systemd.netdev.html#%5BIPVLAN%5D%20Section%20Options) [IPVTAP](https://www.freedesktop.org/software/systemd/man/latest/systemd.netdev.html#%5BIPVTAP%5D%20Section%20Options)
2023-11-16nixos/lib/test-driver: make wait_for_unit ask for ActiveState onlySomeone Serge1-2/+30
This is a hotfix for https://github.com/NixOS/nixpkgs/issues/266690, where `systemctl show $unit` sometimes randomly leaves ActiveState out
2023-11-10Merge pull request #256226 from ElvishJerricco/systemd-stage-1-testing-backdoorRyan Lahfa1-0/+16
2023-11-09systemd-stage-1: Enable backdoor in nixos testsWill Fancher1-0/+16
2023-11-09Merge pull request #266369 from SuperSandro2000/systemd-unit-empty-linesWill Fancher1-18/+17
systemd-lib: cleanup empty lines in unit files
2023-11-09systemd-lib: cleanup empty lines in unit filesSandro Jäckel1-18/+17
2023-11-08Merge pull request #265836 from hercules-ci/nixosTests-no-surprisesRobert Hensing1-3/+0
nixos/testing/nodes: Do allow aliases
2023-11-07nixos/lib/make-btrfs-fs: Use fakeroot and faketime (#265686)Samuel Cormier-Iijima1-2/+4
2023-11-06nixos/testing/nodes: Do allow aliasesRobert Hensing1-3/+0
Aliases exist for a reason. Sure it is nice to make sure that some aliases aren't used within Nixpkgs, but this creates two problems which are far worse than your failing to meet your neatness compulsions. - Users encounter missing attributes, https://github.com/NixOS/nixpkgs/issues/264577 wasting their time, stalling their progress, and even occupying others time that would be better spent on fixing *real* issues. - Hydra doesn't treat evaluation errors seriously enough, with the effect that actual relevant test failures are masked by evaluation failures such as those caused by this no aliases business. - We don't even have the infrastructure to get rid of aliases, because all warnings in package attributes are disallowed by Nixpkgs CI tooling, last I checked. Before re-disabling this, make sure that - An actually helpful deprecation process is in place. - Aliases are still allowed when `nixos-lib.runTests` and `pkgs.testers.runNixOSTest` are invoked by external projects. For instance, `all-tests.nix` could provide such an override (e.g. with `newScope`).
2023-11-02nixos/systemd-lib: fix building of empty unit filesemilylange1-1/+4
This is a fixup for c1ae82f448b10b278dc77e02518775175b463a27. nix' `passAsFile` does not create empty files for variables that are `null`. This results in the following error for units that have no overrides or content, but are, e.g. `wantedBy`: `mv: cannot stat '': No such file or directory`. Minimal reproducer: `systemd.units.empty.wantedBy = [ "multi-user.target" ];` This is often necessary when a unit is loaded in via `systemd.packages`.
2023-10-31make-single-disk-zfs-image: make memSize configurableSirio Balmelli1-1/+4
Signed-off-by: Sirio Balmelli <sirio@b-ad.ch>
2023-10-31nixos/systemd: fix make unit failed when unit too large5aaee91-1/+2
2023-10-29Merge pull request #262839 from RaitoBezarius/qemu-vm/timeoutRyan Lahfa6-13/+76
2023-10-29nixos/lib/test-driver: add driver-timeout as a passthru testRaito Bezarius1-0/+5
From now on, we will aim to ensure that the test driver gets tested by OfBorg using all our available tests. This commit adds the driver timeout test to the driver.