about summary refs log tree commit diff
path: root/modules/core
Commit message (Collapse)AuthorAgeFilesLines
* tests: miniupnpc_2 -> miniupnpcdevhell2022-11-051-1/+1
| | | | | | This was renamed upstream [1]. [1]: https://github.com/NixOS/nixpkgs/pull/198637
* modules/core/tests: adapt to paperless module renamesternenseemann2022-10-011-2/+2
| | | | | | | | Ref. https://github.com/NixOS/nixpkgs/commit/0977227b8622daccb5a8435d3d4216eedf845973 Evaluating the vuizvui Hydra seemingly hit an infinite loop involving the rename warning for this change, so hopefully adapting to it makes it possible to evaluate it again.
* core/tests: Remove nixos.docker-edgeaszlig2022-08-151-4/+0
| | | | | | | | The package has been removed and we're getting the following eval error: error: 'docker-edge' has been removed, it was an alias for 'docker' Signed-off-by: aszlig <aszlig@nix.build>
* core/tests: Don't access removed graphite optionsaszlig2022-07-141-2/+1
| | | | | | | | | | | | | | | The options in services.graphite.api and services.graphite.beacon got[1] removed[2] in nixpkgs because the upstream project doesn't seem to be maintained anymore. More information can be found at: https://github.com/NixOS/nixpkgs/pull/180950 [1]: https://github.com/NixOS/nixpkgs/commit/1f18d441063208968f38bed0fe5 [2]: https://github.com/NixOS/nixpkgs/commit/ada1d87767b8826ea6233952279 Signed-off-by: aszlig <aszlig@nix.build>
* Switch to new Hydra URLaszlig2022-03-211-1/+1
| | | | | | | | | Since the old URL had all sorts of issues ranging from no HTTP/2 support to issues with XSRF protection, I decided to move the Hydra instance to https://hydra.build/ - a domain that I had laying around since years but didn't use so far. Signed-off-by: aszlig <aszlig@nix.build>
* modules/core/common: nix.* -> nix.settings.*devhell2022-02-011-4/+8
| | | | This has been renamed a little while ago.
* Revert "treewide: rename nix.* to nix.settings.*"devhell2022-02-011-2/+2
| | | | This reverts commit 20ee65d79602b6412994dc52907715b274daeebe.
* treewide: rename nix.* to nix.settings.*devhell2022-01-301-2/+2
| | | | | This must have been a recent change where an assert is now thrown because some nix.* settings have been regrouped as nix.settings.*
* modules/core/tests: Remove tracdevhell2022-01-041-3/+0
| | | | | | Similar to `moinmoin`, `trac` has been remove upstream[1]. [1]: https://github.com/nixos/nixpkgs/commit/a859ef91f0fef2139742c11eda43ea3d747cbb9e
* modules/core/tests: Remove moinmoin testdevhell2022-01-041-3/+0
| | | | | | | | | `moinmoin` has been removed upstream[1]. This fixes eval on vuizvui again. [1]: https://github.com/nixos/nixpkgs/commit/5dd90167cea70fe60bebf1ef1fda7e474449b177 The service has been removed from upstream. This fixes
* modules/tests: account for refactor of redis modulesternenseemann2021-12-231-1/+1
|
* modules/lazy-packages: factor wrapper to pkgs.vuizvui.lazy-packagesProfpatsch2021-11-121-43/+1
| | | | This makes it usable outside of the module; should be a pure refactor.
* modules/lazyPackages: factor out lorri-relevant error messageProfpatsch2021-11-121-6/+11
| | | | | I want to use the mkWrapper function outside of the vuizvui module, and this error message would be confusing to have.
* core/tests: Fix "enable" options for Hadoopaszlig2021-11-071-4/+4
| | | | | | | | | | | | | | The varios subservices of Hadoop used "enabled" instead of the common convention "enable" for their option names, eg: services.hadoop.hdfs.datanode.enabled This has been fixed in nixpkgs[1], so we need to do this on our end as well to avoid an evaluation error. [1]: https://github.com/NixOS/nixpkgs/commit/c3d147f507e81455ae467f8aa589972af3449f77 Signed-off-by: aszlig <aszlig@nix.build>
* core/tests: Rename "paperless" to "paperless-ng"aszlig2021-08-241-2/+2
| | | | | | | | | | | | | | | | Fixes the following eval error: The option `services.paperless' can no longer be used since it's been removed. The paperless module has been removed as the upstream project died. Users should migrate to the paperless-ng module (services.paperless-ng). More information can be found in the NixOS 21.11 release notes. We don't use paperless in any machines but since we're testing for NixOS module option definitions, we're running into the eval error above. Switching to paperless-ng should get rid of them. Signed-off-by: aszlig <aszlig@nix.build>
* modules/core: Fix order of Vuizvui pkgs namespaceaszlig2021-07-091-3/+3
| | | | | | | | | | | | | | So far, we have passed self instead of super to our custom package set, but this makes it very hard when overriding other packages and refering to one of these packages in Vuizvui. To fix this, I not only used mkBefore to make sure that the overlay comes before every other overlay but also using super makes sure that whenever we do overrides in Vuizvui, the package *before* the current overlay is selected instead of possibly running into an infinite recursion. Signed-off-by: aszlig <aszlig@nix.build>
* modules/core: Get rid of "with lib;"aszlig2021-07-091-8/+8
| | | | | | | This makes it hard to do static analysis on the code and it's really not needed here, so let's use lib.X directly. Signed-off-by: aszlig <aszlig@nix.build>
* treewide: Fix eval errors post 21.05 releasedevhell2021-06-091-3/+3
| | | | | A few things have changed since the recent NixOS 21.05 release. Mostly naming stuff, so nothing dramatic.
* modules/core/tests: remove quagga test checksternenseemann2021-04-261-3/+0
| | | | | | | quagga has been removed upstream as it is unmaintained: https://github.com/nixos/nixpkgs/commit/40945d399d0ff05e24891a989f5fe48a6e4d316a Fixes eval of all vuizvui machines.
* modules/core/tests: adjust for new kernel test structuresternenseemann2021-04-131-12/+12
| | | | | | | | | | | | | | | The kernel-lts and kernel-latest tests seem to have been removed (not sure when exactly, didn't blame). Instead we can use nixosTests.kernel-generic."linux_${major}_${minor}". This allows us to easily check for tests for arbitrary kernel versions as well. However there is currently a bug that these are returned as functions instead of derivations at the moment which will hopefully be fixed by my upstream PR soon. Until that happens we check if the test is a derivation or not with lib.isDerivation. cc @aszlig for comments / further improvements. Main intention right now is to fix eval in a future proof way.
* modules/core/common: set correct dbPath for command-not-foundsternenseemann2021-02-191-3/+9
| | | | | | | | Since we now distribute the programs.sqlite database with the vuizvui channel, we can make use of it in programs.command-not-found. We change the default path used to use the nixpkgs sub directory of the vuizvui channel (by default it expects a channel named nixos containing the database).
* core/tests: Remove runInMachineaszlig2020-10-221-3/+0
| | | | | | | | | | | | | | | | | The test is not essential for running any real NixOS machines and the tests just checks whether the runInMachine function for building derivations inside a VM works. I was very much reluctant to just remove this test before I actually fixed the issue upstream because this would mean that it's highly likely that I'm never going to do it. However, since all the channels on our side are currently blocking on this test, which isn't relevant either, I'm going to risk possibly never fixing runInMachine upstream since I'd have removed that test anyway for the aforementioned reason. Signed-off-by: aszlig <aszlig@nix.build>
* core/tests: Remove all tests from the "tested" jobaszlig2020-10-041-248/+5
| | | | | | | | | | | | | | | | | | | | The upstream Hydra channels are based on the "tested" job in release-combined.nix, which already contain a bunch of tests that must succeed for the channel to advance. Since evaluation time has skyrocketed for us within the last few months, we now even don't get *any* evaluation since a while since we hit a timeout of 10 hours. I have no idea which changes resulted in this spike of evaluation time but right now I'm too busy with other things to do a proper investigation. To hopefully mitigate this, I decided to base our vuizvui jobset on the "nixos-unstable" channel and we now only run *additional* tests not already tested by the upstream channel. Signed-off-by: aszlig <aszlig@nix.build>
* Use attribute sets for boot.initrd.luks.devicesaszlig2020-09-141-1/+1
| | | | | | | | | | | | | | | | | | | | This was one of the places where types.loaOf was still in place and it got removed a while[1] ago and this in turn causes evaluation to fail for quite a few machines: The option value `boot.initrd.luks.devices' in `...' is not of type `attribute set of submodules'. I've not only changed all the machines to use attribute sets but also fixed the check in core/tests.nix, because comparing against a list when the actual type is an attribute set will result in all the LUKS tests to be part of *all* channels, no matter whether you're actually using LUKS. [1]: https://github.com/NixOS/nixpkgs/commit/20d491a317d9956ddca80913f07 Signed-off-by: aszlig <aszlig@nix.build> Cc: @Profpatsch Cc: @sternenseemann
* core/tests: Remove mesosdevhell2020-08-191-4/+0
| | | | | | | This has also been removed [1] upstream and therefore needs to be removed here. [1]: https://github.com/NixOS/nixpkgs/commit/b2f3bbd3fb958601a7357e39d66f226e065d76c1
* core/tests: Remove mathicsdevhell2020-08-191-3/+0
| | | | | | | This package, the module and its test have been removed [1], so to unbreak Hydra we need to remove it as well. [1]: https://github.com/NixOS/nixpkgs/commit/aebf9a4709215c230e5841d60e2
* core/tests: Fix eval of wireguard tests for realaszlig2020-06-041-4/+4
| | | | | | | | | | | | | | | | | | | | | | I even mentioned the full names of the test attributes in bc4203d221c87a0622d089aaa61884f86d40fd44: tests.wireguard.wireguard-basic-linux-5_4 tests.wireguard.wireguard-basic-linux-latest tests.wireguard.wireguard-generated-linux-5_4 tests.wireguard.wireguard-generated-linux-latest tests.wireguard.wireguard-namespaces-linux-5_4 tests.wireguard.wireguard-namespaces-linux-latest tests.wireguard.wireguard-wg-quick-linux-5_4 tests.wireguard.wireguard-wg-quick-linux-latest So I forgot about the additional "wireguard-" prefix, so Hydra fails to evaluate again: in job 'tests.nixos.wireguard.basic-linux-5_4': evaluation aborted with the following error message: 'cannot find attribute `nixos.wireguard.basic-linux-5_4'' Signed-off-by: aszlig <aszlig@nix.build>
* core/tests: Add missing wireguard attr suffixesaszlig2020-06-031-4/+8
| | | | | | | | | | | | | | | | | | | | | | Commit 89c3cda819da5dc32e4a29ff8f2aad118bde64c7 changed the wireguard attributes to use nested attributes because it was changed upstream. However what the commit has missed is that the attributes are not just plain attributes but come with a kernel version suffix, for example like this: tests.wireguard.wireguard-basic-linux-5_4 tests.wireguard.wireguard-basic-linux-latest tests.wireguard.wireguard-generated-linux-5_4 tests.wireguard.wireguard-generated-linux-latest tests.wireguard.wireguard-namespaces-linux-5_4 tests.wireguard.wireguard-namespaces-linux-latest tests.wireguard.wireguard-wg-quick-linux-5_4 tests.wireguard.wireguard-wg-quick-linux-latest Adding the "-linux-${version}" suffix should fix evaluation. Signed-off-by: aszlig <aszlig@nix.build>
* core/tests: Fix attribute paths for wireguardaszlig2020-06-031-3/+6
| | | | | | | | | | | | | | | | | | A few days ago, the wireguard tests were consolidated[1] into a single attribute with various subattributes, similar to how the virtualbox tests and many other tests are structured. I fixed the attributes and also added the wg-quick attribute that was also introduced in the meantime[2]. This should fix the evaluation errors occuring whenever a channel contains a machine configuration with wireguard enabled. [1]: https://github.com/NixOS/nixpkgs/commit/41bd6d2614749d12ce5ded3e991555b56ea6b2dc [2]: https://github.com/NixOS/nixpkgs/commit/abf60791e2bd274d39e0f18def46795798f9aefd Signed-off-by: aszlig <aszlig@nix.build> Cc: @Profpatsch
* core/tests: Fix attribute for Docker containersaszlig2020-05-051-2/+2
| | | | | | | | | | The option has been renamed[1] from just "docker-containers" to "virtualisation.oci-containers.containers", so our checks no longer evaluate. [1]: https://github.com/NixOS/nixpkgs/commit/2f7747526cc80844a506c4aa147 Signed-off-by: aszlig <aszlig@nix.build>
* modules/tests: Fix eval of dokuwikidevhell2020-04-241-1/+1
| | | | | | | With the merge of [1], the `.enable` check for `config.services.dokuwiki` has been removed. [1]: https://github.com/NixOS/nixpkgs/pull/83769
* core/tests: Rename references to "nesting"aszlig2020-04-151-5/+4
| | | | | | | | | | | The nesting.clone and nesting.children options were renamed[1] upstream and they're now contained in one single submodule option, which means that for our tests we only need to check for config.specialisation instead of nesting.clone and nesting.children separately. [1]: https://github.com/NixOS/nixpkgs/commit/ec2d28e3233c4c04fe6afe13e82 Signed-off-by: aszlig <aszlig@nix.build>
* core/tests: Remove check on graphite.pageraszlig2020-03-231-1/+1
| | | | | | | | | | | | All of the NixOS options in services.graphite.pager have been removed in 37ffa6ea51f3a3d7e43736b9a5ce3c149dd9d1ee, but since we're using the "enable" option to check whether we need to run tests, we'll get an eval error. Removing the check fixes the evaluation error. Signed-off-by: aszlig <aszlig@nix.build> Reported-by: @devhell
* core/tests: Fix option check for buildkite-agentsaszlig2020-02-101-1/+1
| | | | | | | | | Another thing I missed in ffa7a45ba0aa27c926472e23587423bc07a6db53 is that not only the module got renamed, but its interface has changed as well and instead of an "enable" option, it's now just an attribute set of submodules and the service(s) are enabled whenever it's non-empty. Signed-off-by: aszlig <aszlig@nix.build>
* core/tests: Rename module for buildkite-agentaszlig2020-02-101-2/+2
| | | | | | | | | | | | The buildkite-agent module, NixOS test and option got renamed[1] to its plural form, also supporting multiple agents. While none of our machines are using the module, we nevertheless need to fix the module option attribute so that our channels will evaluate. [1]: https://github.com/NixOS/nixpkgs/commit/f003810989c58746db9ea52f623 Signed-off-by: aszlig <aszlig@nix.build>
* core/tests: Remove docker-preloader testaszlig2020-02-101-4/+0
| | | | | | | | This test is only really useful in test environments and is imported only within the QEMU test driver. The NixOS module option is not available otherwise, which in turn will cause the evaluation to fail. Signed-off-by: aszlig <aszlig@nix.build>
* core/tests: Fix evaluation for docker-preloaderaszlig2020-02-101-1/+2
| | | | | | | | | Eval error introduced by 0f0e3cef6297d1334a3b1c27bb125490850be84f. The virtualisation.dockerPreloader attribute doesn't include an "enable" option, but instead is configured by specifying a list of images. Signed-off-by: aszlig <aszlig@nix.build>
* core/tests: Update upstream NixOS testsaszlig2020-02-101-63/+606
| | | | | | | | | | | | | | | | | It has been a while, since we did a full update of all the tests, which we last did in 3ea85a699a65dbdd4f633d21e70be6859b0f3f8f (April 2018). Since then, a whole lot of tests were added and a few of them got removed as well. Since we only did incremential updates whenever something broke, we didn't have any newer tests. We should now have conditions of all the tests we have in nixpkgs master[1] minus a few special ones, which are only related to upstream image generation (eg. the ec2 test). [1]: https://github.com/NixOS/nixpkgs/commit/637bb9fa984238f2f7e6235ca11 Signed-off-by: aszlig <aszlig@nix.build>
* treewide: Remove all references to SLiMaszlig2019-12-081-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | This fixes the following evaluation error: The option `services.xserver.displayManager.slim' can no longer be used since it's been removed. The SLIM project is abandoned and their last release was in 2013. Because of this it poses a security risk to your system. Other issues include it not fully supporting systemd and logind sessions. Please use a different display manager such as LightDM, SDDM, or GDM. You can also use the startx module which uses Xinitrc. Here is the nixpkgs upstream pull request removing SLiM: https://github.com/NixOS/nixpkgs/pull/73251 Since I was using a custom theme for SLiM and actually liked the minimalism, it's probably time to start patching LightDM soon. For now however, I'll stay with a default LightDM configuration and wait until I'm getting annoyed :-) Signed-off-by: aszlig <aszlig@nix.build>
* core/tests: Remove beegfs testaszlig2019-12-081-3/+0
| | | | | | | | | | | | | | | | The test has been removed upstream[1] for the following reason[2]: > BeeGFS is a fantastic high performance file system. However, after > running it for a few months last year the meta data daemon kept > crashing randomly in production use (support from the manufacturer > requires a paid support contract). The current version that is nixpkgs > is outdated and I do not want to maintain it any longer. The build > system is purely based on make file and is hard to maintain. [1]: https://github.com/NixOS/nixpkgs/commit/c3e17efaab0b53b4f45454aaaea7690506a8fcde [2]: https://github.com/NixOS/nixpkgs/pull/66352 Signed-off-by: aszlig <aszlig@nix.build>
* treewide: use `runCommandLocal` where applicableProfpatsch2019-12-081-1/+1
| | | | | | | `runCommandLocal` was added to nixpkgs in https://github.com/NixOS/nixpkgs/pull/74642 to speed up trivial `runCommand` derivations by always building them locally. We have a few places where that’s good to use.
* core/tests: Remove quake3devhell2019-11-101-4/+0
| | | | | | | | | This test has been recently removed upstream [1]. [1]: https://github.com/NixOS/nixpkgs/commit/50ea99cbc18d3f480a773de5250b4ef9c7f6d514 Signed-off-by: devhell <devhell@mailfresser.de> Cc: @aszlig
* modules/core: Fix eval for nix.binaryCachesaszlig2019-06-261-4/+2
| | | | | | | | | | | | | | | | | Besides using the default value from options, I could have just used mkOptionDefault back then when I was writing this, but fortunately using the default attribute from the option itself now resulted in an eval error. Had I used mkOptionDefault, the value just would have been silently changed to the default value, since in https://github.com/NixOS/nixpkgs/pull/63810 the default value now has priority 1000 instead of 1500 (mkOptionDefault). So since there is no longer an option default, we now can just set our binary cache in a singleton list (with priority 100) and be done. Signed-off-by: aszlig <aszlig@nix.build>
* core/tests: Remove statsd testaszlig2018-11-231-3/+0
| | | | | | | | | The test got removed in NixOS/nixpkgs@552c2236254271f12342d3ad7a0f7c0bb with the following comment: The package/service is broken. Upstream is dead Signed-off-by: aszlig <aszlig@nix.build>
* core/tests: Remove test for kernel-copperheadaszlig2018-09-031-4/+0
| | | | | | | | The test has been removed in nixpkgs because it is unmaintained: https://github.com/NixOS/nixpkgs/commit/5fccac2b8d77a660a968809519710a5b Signed-off-by: aszlig <aszlig@nix.build>
* core/tests: Remove check on copperhead_stableaszlig2018-07-041-4/+2
| | | | | | | | The attribute linuxPackages_copperhead_stable has been removed in NixOS/nixpkgs@ddce094ddf456434e15a7af315be1f6de4136fd7 because it's unmaintained. Signed-off-by: aszlig <aszlig@nix.build>
* core/tests: Remove test for fleetaszlig2018-05-051-3/+0
| | | | | | | | | | | This has been removed in NixOS/nixpkgs@c3eefe801a55586445125d49f159c1c0. @xeji writes in NixOS/nixpkgs#39991: > fleet is deprecated and unmaintained upstream. panamax is broken and > depends on fleet. Remove packages, modules and tests. Signed-off-by: aszlig <aszlig@nix.build>
* core/tests: Fix predictable-interface-names testsaszlig2018-04-291-2/+15
| | | | | | | Those also have subtests and they also test different variations of options, so let's actually create a check for every single variations. Signed-off-by: aszlig <aszlig@nix.build>
* core/tests: Specify subtest for Kubernetesaszlig2018-04-291-2/+4
| | | | | | | | The Kubernetes tests actually contain subtests, so let's specify them so we don't run into errors during Hydra evaluation because the result would be a generic attribute set instead of a derivation. Signed-off-by: aszlig <aszlig@nix.build>
* core/tests: Add tests for Chromium and Firefoxaszlig2018-04-291-0/+6
| | | | | | | | | While hasPackage is not yet very accurate when it comes to detecting whether a package is in systemPackages (it only matches the name attribute), let's make at least two of the most frequently used browsers part of our machine specific tests. Signed-off-by: aszlig <aszlig@nix.build>