summary refs log tree commit diff
path: root/nixos/lib/build-vms.nix
Commit message (Collapse)AuthorAge
* nixosTest: Make system.nixos.revision constantRobert Hensing2021-03-22
| | | | | | | | Make the revision metadata constant, in order to avoid needless retesting. The human version (e.g. 21.05-pre) is left as is, because it is useful for external modules that test with e.g. nixosTest and rely on that version number.
* nixos: fix qemu_test being used in normal VMsrnhmjoj2020-10-21
| | | | This is an attempt to fixup PR #49403.
* nixos/testing: Add support for specialArgsJanne Heß2020-09-14
| | | | | | | Since using flakes disallows the usage of <unstable> (which I use in some tests), this adds an alternative. By setting specialArgs, all VMs can get the `unstable` flake input as an arg. This is not possible with extraConfigurations, as that would lead to infinite recursions.
* Merge branch 'master' into flip-map-foreachdanbst2019-08-18
|\
| * Make hostname in tests overridableNikola Knezevic2019-08-07
| | | | | | | | | | The original form effectively forbade any NixOS configuration that is under test to explicitly set the hostname.
* | mass replace "flip map -> forEach"danbst2019-08-05
| | | | | | | | | | | | | | See `forEach`-introduction commit. ``` rg 'flip map ' --files-with-matches | xargs sed -i 's/flip map /forEach /g' ```
* | Revert "mass replace "flip map -> foreach""danbst2019-08-05
| | | | | | | | This reverts commit 3b0534310c89d04fc3a9c5714b5a4d0f9fb0efca.
* | mass replace "flip map -> foreach"danbst2019-07-14
|/ | | | | | | See `foreach`-introduction commit. ``` rg 'flip map ' --files-with-matches | xargs sed -i 's/flip map /foreach /g' ```
* nixos: Make nesting.children work in NixOS testsArian van Putten2019-05-29
| | | | | | | | | We differentiate between modules and baseModules in the VM builder for NixOS tests. This way, nesting.children, eventhough it doesn't inherit from parent, still has enough config to actually complete the test. Otherwise, the qemu modules would not be loaded, for example, and a nesting.children statement would not evaluate.
* nixos: Make 'nesting.clone' work in NixOS testsArian van Putten2019-05-26
| | | | | | | | | | | | | | | | | | | Because nesting.clone calls 'eval-config.nix' manually, without the 'extraArgs' argument that provides the 'nodes' argument to nixos modules in nixos tests, evaluating of 'nesting.clone' definitions would fail with the following error while evaluating the module argument `nodes' in "<redacted>" while evaluating the attribute '_module.args.nodes' at undefined position: attribute 'nodes' missing, at <redacted./nixpkgs/lib/modules.nix:163:28 by not using 'extraArgs' but a nixos module instead, the nodes parameter gets propagated to the 'eval-config.nix' call that 'nesting.clone' makes too - getting rid of the error. See https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/system/activation/top-level.nix#L13-L23 See https://github.com/NixOS/nixpkgs/blob/master/nixos/lib/build-vms.nix#L27 See https://github.com/NixOS/nixpkgs/issues/20886#issuecomment-495952149
* test: set machines fqdn in /etc/hostsJean-Philippe Braun2018-12-07
|
* Add pkgs.nixosTestRobert Hensing2018-11-13
|
* tests: refactor to carry the package set as an argumentLéo Gaspard2018-11-11
| | | | | This way, the package set will be possible to pass without re-importing all the time
* nixos: doc: move non-service parts of `service.nixosManual` to ↵Jan Malakhovski2018-09-23
| | | | `documentation.nixos`
* [bot] nixos/*: remove unused arguments in lambdasvolth2018-07-20
|
* nixos/networking-interfaces: rename IP addresses/routes optionsrnhmjoj2018-02-17
|
* nixos/qemu-flags: Take a 'pkgs' parameterTuomas Tynkkynen2018-01-30
| | | | I'm gonna use it in the next commit.
* Use only one build of qemu in VM testsEelco Dolstra2016-12-20
| | | | | | | Previously we were using two or three (qemu_kvm, qemu_test, and qemu_test with a different dbus when minimal.nix is included). (cherry picked from commit 8bfa4ce82ea7d23a1d4c6073bcc044e6bf9c4dbe)
* nixos/lib/testing.nix: make 'config' a free variableDomen Kožar2016-03-29
| | | | cc @edolstra
* Unify NixOS and Nixpkgs channel structureEelco Dolstra2015-08-05
| | | | | | | | | | | | | | | | | | | | | | This is primarily to ensure that -I nixpkgs=https://nixos.org/channels/nixos-unstable/nixexprs.tar.xz and -I nixpkgs=https://github.com/NixOS/nixpkgs-channels/archive/nixos-unstable.tar.gz and -I nixpkgs=https://nixos.org/channels/nixpkgs-unstable/nixexprs.tar.xz behave consistently. It also allows installing packages via "nix-env -iA nixos.<pkg>" rather than "nixos.pkgs.<pkg>". It would be even better to allow "nixpkgs.<pkg>", but that requires a change to nix-channel. Fixes #7659.
* Remove zipTwoListsEelco Dolstra2015-07-28
| | | | This function is redundant (we also have zipLists).
* In a test VM it's impossible to connect to itself, so fix thisSander van der Burg2015-02-19
|
* Revert "Revert "Fix syntax error in nixos/lib/build-vms.nix, introduced by ↵William A. Kennington III2014-08-31
| | | | | | 86c0f8c"" This reverts commit 2f697bf6931b24cdd428e22effbf6427a85afd42.
* Revert "Revert "Merge pull request #3182 from wkennington/master.ipv6""William A. Kennington III2014-08-31
| | | | This reverts commit ea8910652fcecbcd4f21aa1c66b1a0a239408b04.
* Revert "Merge pull request #3182 from wkennington/master.ipv6"Rob Vermaas2014-08-31
| | | | | This reverts commit b23fd6585481a42937e105d5fce630a549900e86, reversing changes made to 43654cba2c280ce17b81db44993d1c1bcae3a9c6.
* Revert "Fix syntax error in nixos/lib/build-vms.nix, introduced by 86c0f8c"Rob Vermaas2014-08-31
| | | | This reverts commit 704e91bab005eabe968a3b140222fb0cf7afd4db.
* Fix syntax error in nixos/lib/build-vms.nix, introduced by 86c0f8cRickard Nilsson2014-08-30
|
* Refactor nixos files relying on the old ipAddress / prefixLength / ↵William A. Kennington III2014-08-30
| | | | subnetMask attributes
* Add a regression test for hostname / nss_myhostnameEelco Dolstra2013-11-26
| | | | Issue #1248.
* Terrible backward compatibility hackEelco Dolstra2013-10-11
|
* Update the release expressions and the channel generatorsEelco Dolstra2013-10-10
|
* Move all of NixOS to nixos/ in preparation of the repository mergeEelco Dolstra2013-10-10