Commit Graph

29150 Commits

Author SHA1 Message Date
zowoq
de80fd541f cntr: only run nixosTests on aarch64/x86_64 2022-09-25 07:38:14 +10:00
Robert Hensing
3ce4179374 nixos/doc/writing-nixos-tests: Remove flake info for now 2022-09-24 17:42:53 +01:00
Robert Hensing
f40ff7f1f1 nixos/tests/installer: Add make-options-doc dep 2022-09-24 17:42:52 +01:00
Robert Hensing
1c0b9c4a48 nixos/testing/network.nix: Add network config to specialisations 2022-09-24 17:42:52 +01:00
Robert Hensing
7cdc9bc340 nixos/testing: Improve interactive docs 2022-09-24 17:42:52 +01:00
Robert Hensing
6a78b41476 nixos/doc/writing-nixos-tests: Various improvements
Thanks to fricklerhandwerk for the many suggestions, most of which
I have fixupped into preceding commits.
2022-09-24 17:38:11 +01:00
Robert Hensing
b2caf7965c nixos/doc/writing-nixos-tests: Clarify working directory
Co-authored-by: christian-burger <christian@krikkel.de>
2022-09-24 17:38:11 +01:00
Robert Hensing
666e969da0 nixos/testing: Add nodes.config backcompat to nodes module argument 2022-09-24 17:38:10 +01:00
Robert Hensing
ac03757eb2 nixos/doc: Wire up the test options reference 2022-09-24 17:38:10 +01:00
Robert Hensing
6205d37747 nixos/testing: Improve option docs 2022-09-24 17:38:10 +01:00
Robert Hensing
4ce93fbae8 nixos/testing-python: Add interactive variant support to makeTest 2022-09-24 17:38:10 +01:00
Robert Hensing
618f82406f nixos/tests/installer: Fix docbook dependency 2022-09-24 17:38:10 +01:00
Robert Hensing
52bfa318e8 nixos/testing: Support mypy through regular mechanisms
Rebase / forward port of 2c8bbf33fd
2022-09-24 17:38:10 +01:00
Robert Hensing
9303a3c73b nixos/tests/installed-tests: Fix maintainers 2022-09-24 17:38:10 +01:00
Robert Hensing
583a4f0275 nixos/tests/cri-o: Fix maintainers 2022-09-24 17:38:10 +01:00
Robert Hensing
e260018f9c nixos/tests: Add names 2022-09-24 17:38:09 +01:00
Robert Hensing
0af6e6b0e5 nixos/testing/meta.nix: Add options, some optional 2022-09-24 17:38:09 +01:00
Robert Hensing
f01fec4099 nixos/testing/network.nix: Fix specialisations onlyShorthand 2022-09-24 17:38:09 +01:00
Robert Hensing
e77913a680 nixos/all-tests.nix: Invoke tests based on make-test-python.nix 2022-09-24 17:38:09 +01:00
Robert Hensing
9886db059a nixos/testing: Embrace callTest
My conception of its input was wrong. It is quite a useful construct,
even if its name is a bit weird.
2022-09-24 17:38:09 +01:00
Robert Hensing
5297d584bc nixos/lib/eval-config: Document the use of baseModules 2022-09-24 17:38:09 +01:00
Robert Hensing
57ac9dd3ae nixos/lib/build-vms.nix: Remove
It has been replaced by the modular test framework in nixos/lib/testing.

If you are looking for a way to produce a VM-test-like configuration
outside of the test framework, use the nixos/lib/testing/nixos-test-base.nix
NixOS module, possibly in combination with { _module.args.nodes = .....; }.
2022-09-24 17:38:09 +01:00
Robert Hensing
24d1d74e4e nixos/testing: Extract nixos-test-base.nix NixOS module 2022-09-24 17:38:09 +01:00
Robert Hensing
38fb09e427 testing-python.nix: Replace makeTest implementation 2022-09-24 17:38:08 +01:00
Robert Hensing
537f456373 nixos/doc/running-nixos-tests: Simplify running instructions with nixosTests 2022-09-24 17:38:08 +01:00
Robert Hensing
6e2f753989 nixos/doc/running-nixos-tests-interactively: Describe interactive option 2022-09-24 17:38:08 +01:00
Robert Hensing
b0c781cc41 nixos/testing: Move entrypoint to nixos/lib + doc 2022-09-24 17:38:08 +01:00
K900
640aa41dfb nixos/plasma5: only generate kwinrc/kdeglobals if we have anything to generate 2022-09-24 15:10:14 +03:00
Robert Hensing
e18ab300ad
Merge pull request #191647 from hercules-ci/nixos-options-doc-explain-migration
nixos/make-options-doc: Explain docbook to markdown migration
2022-09-24 12:46:50 +01:00
Matthieu Coudron
fd62fdca5b virtualisation.docker: require docker.service for docker-prune.service
else docker-prune fails when docker is not launched. Adjusted the test as well
2022-09-24 10:42:00 +02:00
github-actions[bot]
ef833a6fd2
Merge master into staging-next 2022-09-23 12:01:34 +00:00
Vladimír Čunát
b6e4e0f8ef
Merge #191727: firefox-esr-91, thunderbird-91: drop
...into staging-next
2022-09-23 11:51:26 +02:00
Alexander Bantyev
9ee2ceb492
Merge pull request #192496 from cab404/moonraker-defaults-fix
nixos.moonraker: fix config options location
2022-09-23 11:25:57 +04:00
cab
e46430d503
nixos.moonraker: version change fixes
Old config locations were deprecated
https://moonraker.readthedocs.io/en/latest/configuration/#option-moved-deprecations.

Also, added PrivateTmp to accomodate for logs being unconditionally
written there.
2022-09-23 11:17:54 +04:00
cab
849c40b5f5
klipper: additional options
This allows for easier interop with Moonraker, as well as giving an
ability to store klipper configuration files in /var/lib/klipper, thus not
littering /etc with all the backups SAVE_CONFIG does.

- Added `configFile` as an alternative way to specify configuration
- Added `isMutableConfig` and `mutableConfigPath`

Co-authored-by: @lovesegfault <bernardo@meurer.org>
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
Co-authored-by: Bernardo Meurer <bernardo@meurer.org>
2022-09-23 03:10:28 +04:00
Vladimír Čunát
3671ea902a
Merge branch 'master' into staging-next 2022-09-22 19:06:26 +02:00
Florian Brandes
73f09f2145
pgadmin4: 6.12 -> 6.13
- Add update script
- Add email options to pgadmin4 nixOS module
- Add override for flask 2.2

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
2022-09-22 17:42:20 +02:00
Maximilian Bosch
b2ec74836b
Merge pull request #191670 from Ma27/fix-hardened-kernel-update
linux/hardened: fix update script and build for 5.19
2022-09-22 11:03:31 +02:00
Martin Weinelt
c571a5d1c2
Merge pull request #192388 from erikarvstedt/paperless-fix-syscalls 2022-09-22 09:11:23 +02:00
github-actions[bot]
659e794cd5
Merge master into staging-next 2022-09-22 06:19:43 +00:00
Erik Arvstedt
ecacff35a6
nixos/paperless: add required syscall
`unpaper` requires syscall 238 (`set_mempolicy`).
Add this by un-blocking the systemd syscall filter set `@resources`
which is safe in the context of paperless.
2022-09-22 08:14:21 +02:00
figsoda
2bf91a6157
stylua: 0.14.3 -> 0.15.0 (#192279) 2022-09-22 14:50:19 +10:00
github-actions[bot]
6ded381b0e
Merge master into staging-next 2022-09-22 00:03:22 +00:00
Sandro
fad61ad09c
Merge pull request #188949 from RaitoBezarius/listmonk-module 2022-09-21 23:42:03 +02:00
github-actions[bot]
57e15d64c3
Merge master into staging-next 2022-09-21 18:01:25 +00:00
Raito Bezarius
6b891f4788 nixos/listmonk: init module 2022-09-21 19:55:20 +02:00
Jakub Kozłowski
944c6691fc
aws: remove, recommend awscli / awscli2 (#176707)
Co-authored-by: superherointj <5861043+superherointj@users.noreply.github.com>
2022-09-21 19:06:36 +02:00
maralorn
d3eeb5fcd2 Merge remote-tracking branch 'refs/remotes/origin/haskell-updates' into haskell-updates 2022-09-21 17:43:42 +02:00
maralorn
90eacab493 Merge branch 'master' into haskell-updates 2022-09-21 17:42:00 +02:00
maralorn
bdcbbc7bd2 haskell-language-server: Default toplevel attribute to dynamic linking and one ghc version 2022-09-21 16:39:12 +02:00
maralorn
e2c6425398
Merge pull request #191991 from maralorn/drop-minor-versions
haskell.{compiler,packages}: Add aliases without minor versions
2022-09-21 16:15:48 +02:00
Brian Leung
e5f798f3b9 nixos/lemmy: use PostgreSQL module to ensure database/user existence
Co-authored-by: Shahar Dawn Or <mightyiampresence@gmail.com>
Co-authored-by: a-kenji <aks.kenji@protonmail.com>
Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
Co-authored-by: Ilan Joselevich <personal@ilanjoselevich.com>
2022-09-21 09:00:52 -04:00
Brian Leung
3de898f262 nixos/lemmy: inline localPostgres into database assertion
Co-authored-by: Shahar Dawn Or <mightyiampresence@gmail.com>
Co-authored-by: Ctem <c@ctem.me>
Co-authored-by: a-kenji <aks.kenji@protonmail.com>
Co-authored-by: Brian Leung <leungbk@posteo.net>
Co-authored-by: Ilan Joselevich <personal@ilanjoselevich.com>
2022-09-21 09:00:52 -04:00
github-actions[bot]
15bbf4d3fc
Merge master into staging-next 2022-09-21 12:01:48 +00:00
Martin Weinelt
b3c86ef755
firefox-esr-91-unwrapped: drop
The 91 series has reached its end of life.
2022-09-21 13:45:38 +02:00
Robert Hensing
5727fd3e6f nixosTests.agate: Use module based runner 2022-09-21 10:55:12 +01:00
Robert Hensing
15dcbc2514 nixosTests.aesmd: Use module based runner 2022-09-21 10:55:12 +01:00
Robert Hensing
edf8be37af nixosTests.adguardhome: Use module based runner 2022-09-21 10:55:12 +01:00
Robert Hensing
b7ffe44469 nixosTests.acme: Use module system based runner 2022-09-21 10:55:12 +01:00
Robert Hensing
9e4277b970 nixos/testing/network.nix: Fix for specialisations and specialArgs.name
Before this, it relied on being able to `imports` from the `name`
module argument, which wasn't really necessary and required a
potentially quite breaking change. We can revert that now.
2022-09-21 10:55:12 +01:00
Robert Hensing
0691b450b1 nixosTests._3proxy: Use module system based runner 2022-09-21 10:55:11 +01:00
Robert Hensing
a958a4aa00 nixos/testing: Add pkgs parameter
This parameter is for packages to use in VMs, unlike hostPkgs.
2022-09-21 10:55:11 +01:00
Robert Hensing
124b0c4abc nixos/testing/network.nix: Avoid deprecated .config 2022-09-21 10:55:11 +01:00
Robert Hensing
3c09cb2363 nixos/all-tests.nix: Improve runTest for release.nix
... and add runTestOn.
2022-09-21 10:55:11 +01:00
Robert Hensing
b3de22483c nixos/testing-python.nix: Add evalTest
This is a decomposition of the testing-python.nix and build-vms.nix
files into modules.

By refactoring the glue, we accomplish the following:

 - NixOS tests can now use `imports` and other module system features.
    - Network-wide test setup can now be reusable; example:
       - A setup with all VMs configured to use a DNS server
       - Split long, slow tests into multiple tests that import a
         common module that has most of the setup.
    - Type checking for the test arguments
    - (TBD) "generated" options reference docs
 - Aspects that had to be wired through all the glue are now in their
   own files.
    - Chief example: interactive.nix.
    - Also: network.nix

In rewriting this, I've generally stuck as close as possible to the
existing code; copying pieces of logic and rewiring them, without
changing the logic itself.

I've made two exceptions to this rule

 - Introduction of `extraDriverArgs` instead of hardcoded
   interactivity logic.

 - Incorporation of https://github.com/NixOS/nixpkgs/pull/144110
   in testScript.nix.

I might revert the latter and split it into a new commit.
2022-09-21 10:55:11 +01:00
oxalica
07a9b7b1d8 nixos/{test/,}v2ray: fix for new CLI and use upstream systemd units 2022-09-21 15:59:29 +08:00
Jonas Heinrich
ed1b801f8d
Merge pull request #192110 from rski/master
nixos/modules/sway: Remove unsupported flag in doc
2022-09-21 09:50:49 +02:00
github-actions[bot]
071a9fc320
Merge master into staging-next 2022-09-21 06:23:26 +00:00
maralorn
fae2ff5c03 haskell.{compiler,packages}: Add aliases without minor versions 2022-09-21 05:51:28 +02:00
Robert Hensing
97f6e8b3e6
Merge pull request #191988 from zombiezen/fix-docker-ca-certificates
dockerTools: add missing mkdir to caCertificates derivation
2022-09-21 01:20:00 +01:00
github-actions[bot]
7da9ac9ae6
Merge master into staging-next 2022-09-21 00:03:46 +00:00
Robert Hensing
cbb1f39264 nixosTests.docker-tools: Add image-with-certs 2022-09-21 01:00:04 +01:00
Thomas Tuegel
fff89194fe
Merge pull request #183381 from alois31/oxygen-sounds
oxygen-sounds: init at 5.25.3
2022-09-20 14:25:55 -05:00
Romanos Skiadas
460b4b8c1a nixos/modules/sway: Remove unsupported flag in doc
--my-next-gpu-wont-be-nvidia is no longer supported as of 1.7
2022-09-20 20:51:27 +03:00
github-actions[bot]
1edfa00d80
Merge master into staging-next 2022-09-20 12:01:29 +00:00
Florian Klink
40461db5c5
Merge pull request #191904 from SuperSandro2000/191032-cleanup
nixos/systemd: remove not required or true
2022-09-20 12:45:00 +02:00
Martin Weinelt
5d4267b0f2 Merge remote-tracking branch 'origin/master' into staging-next 2022-09-20 12:25:19 +02:00
Jonas Heinrich
77984dedc4
Merge pull request #191851 from wentasah/usbrelay-1.0.1
usbrelay: 1.0 -> 1.0.1
2022-09-20 12:23:36 +02:00
Brian Leung
2c8e67bf6b nixos/lemmy: settings.database.createLocally -> database.createLocally
Co-authored-by: Shahar Dawn Or <mightyiampresence@gmail.com>
Co-authored-by: Ctem <c@ctem.me>
Co-authored-by: a-kenji <aks.kenji@protonmail.com>
2022-09-19 11:34:08 -04:00
Sandro Jäckel
03b6d5111a
nixos/systemd: remove not required or true 2022-09-19 13:45:01 +02:00
Michal Sojka
ec026d26d2 usbrelay: 1.0 -> 1.0.1 2022-09-18 22:54:13 +02:00
github-actions[bot]
7b5db3faac
Merge master into staging-next 2022-09-18 12:01:40 +00:00
Maximilian Bosch
073f7b179c
nixos/kernel-generic: build linux_5_19_hardened 2022-09-18 12:13:58 +02:00
Linus Heckemann
fb517fc0b0
Merge pull request #191672 from Ma27/rm-kernel-18
linux: remove 5.18
2022-09-18 12:09:02 +02:00
Vladimír Čunát
f8dcf25486
Merge branch 'master' into staging-next 2022-09-18 07:31:10 +02:00
Franz Pletz
60e0f368f1
Merge pull request #191552 from Tasqa/libvirtd-zfs-storage 2022-09-18 04:21:15 +02:00
Lorenzo Manacorda
241f31a0a7 nixos/matrix-synapse: fix link to install instructions 2022-09-18 04:14:57 +02:00
Jairo Llopis
a7a94811e3
nixos/nix-daemon: support machine protocol
Make ssh-ng:// users happier.

@moduon MT-904
2022-09-18 00:05:35 +02:00
github-actions[bot]
f2681f8bd1
Merge master into staging-next 2022-09-17 18:01:15 +00:00
Maximilian Bosch
5b35cc27e0
Merge pull request #190431 from r-ryantm/auto-update/wiki-js
wiki-js: 2.5.286 -> 2.5.287
2022-09-17 18:20:28 +02:00
Maximilian Bosch
6b6bb7cdd3
nixos/wiki-js: pin nodejs to v16
v18 is not supported, see https://docs.requarks.io/install/requirements#nodejs
2022-09-17 17:46:20 +02:00
Maximilian Bosch
a2969b43bb
linux: remove 5.18
This is long overdue, the last release was almost a month ago, on 21st
Aug 2022[1].

[1] https://lwn.net/Articles/905532/
2022-09-17 17:06:58 +02:00
Robert Hensing
5b52d552cb nixos/make-options-doc: Explain docbook to markdown migration 2022-09-17 13:38:23 +01:00
github-actions[bot]
568df7e30a
Merge master into staging-next 2022-09-17 12:01:34 +00:00
Sandro
8ad3fe7279
Merge pull request #180598 from madonius/package/alps 2022-09-17 13:56:16 +02:00
Emmanouil Kampitakis
85f0887662 nixos/alps: init module 2022-09-16 22:29:11 +02:00
Tako Marks
a0f2ca21da libvirtd: add zfs storage driver tests 2022-09-16 22:04:24 +02:00
Stig Palmquist
c24975c50a
release-notes: mention perl 5.36 and verify_SSL patch 2022-09-16 18:54:52 +02:00
aszlig
373feb46cf
nixos: Only use compatible kernels for ZFS tests
Right now, the latest kernel is version 5.19, for which there is no
compatible upstream release for ZFS. However, our NixOS VM test always
uses linuxPackages_latest and thus will fail with an evaluation error
most of the time when a new mainline kernel is released.

Since we expose a latestCompatibleLinuxPackages attribute for the ZFS
packages, we already know what's the latest kernel version that is
supported so let's use that instead of linuxPackages_latest.

Signed-off-by: aszlig <aszlig@nix.build>
2022-09-16 14:58:31 +02:00
github-actions[bot]
c9b3f8501c
Merge master into staging-next 2022-09-16 12:01:25 +00:00