about summary refs log tree commit diff
path: root/nixos/lib
Commit message (Collapse)AuthorAge
* Merge pull request #73251 from worldofpeace/remove-slimworldofpeace2019-11-15
|\ | | | | nixos/slim: remove
| * nixos/slim: removeworldofpeace2019-11-11
| | | | | | | | | | | | | | | | The SLIM project is abandoned and their last release was in 2013. Because of this it poses a security risk to systems, no one is working on it or picked up maintenance. It also lacks compatibility with systemd and logind sessions. For users, there liikely isn't anything like slim that's as lightweight in terms of dependencies.
* | test-driver: add mypy supportJörg Thalheim2019-11-11
|/ | | | | It's a good idea to expand this in future to test code as well, so we get type checking there as well.
* nixos/tests: fix succeed() with multiple commandsFlorian Klink2019-11-11
| | | | | | | | we previously immediately returned the first commands output, and didn't execute any of the other commands. Now, return the last commands output. This should be documented in the method docstring.
* nixos/tests: correct arguments to get_unit_infoLeonhard Markert2019-11-08
|
* nixos/tests: improve get_unit_info expressiveness on failureMarijan Petricevic2019-11-08
|
* Merge pull request #72943 from marijanp/port-test-driver-pythonworldofpeace2019-11-07
|\ | | | | Port remaining test-driver functions to python
| * nixos/tests: implemented python test-driver version of forwardPortMarijan2019-11-06
| |
| * nixos/tests: implemented python test-driver version of dumpTTYContentsMarijan2019-11-06
| |
* | Merge pull request #72947 from tfc/boot-test-port-fixworldofpeace2019-11-07
|\ \ | | | | | | Boot test port fix
| * | nixos/test: Handle undecodable bytesJacek Galowicz2019-11-07
| | | | | | | | | | | | This threw exceptions in boot menus
| * | nixos/tests: Fix subprocess launch call for VM monitorJacek Galowicz2019-11-06
| |/ | | | | | | This crashed in the create-script case
* | Merge pull request #72835 from tfc/nixos-integration-test-portsworldofpeace2019-11-07
|\ \ | |/ |/| Nixos integration test ports
| * nixos/tests: Implement python test-driver version of getWindowNames and ↵Jacek Galowicz2019-11-05
| | | | | | | | waitForWindow
| * nixos/tests: Implement python test-driver version of requireActiveUnitJacek Galowicz2019-11-05
| |
* | nixos/tests: Ignore shutdown/crash if not bootedDaniel Schaefer2019-11-06
|/ | | | | | | | Condition seems to be inverted. Crash and shutdown only make sense, when the machine is booted; i.e. we return immediately otherwise. In the Perl test driver this is: return unless $self->{booted};
* nixos/test: use ptpython as replFlorian Klink2019-11-04
|
* nixos/test: Port test driver to pythonJacek Galowicz2019-11-04
| | | | Thanks @blitz and @jtraue for help with implementing machine methods
* nixos/make-iso9660-image: Fix doc typoChuck2019-10-18
|
* nixos/make-iso9660-image: Fix storeContents documentationChuck2019-10-18
| | | | | | `packages` was renamed to `storeContents` in 668c146e33291e933ccfb19fd39fab9cd2b7900d, but this comment describing its purpose was not updated to match.
* Revert "make-disk-image: replace nixos-install by nix-env calls"Eelco Dolstra2019-10-07
| | | | | | | | This reverts commit e9bf955fd6d5ffda218878ba561c93c6a28dfe8e. We use nixos-install to ensure that make-disk-image produces the same result as a regular installation (9802da517fe4da41d68516029b01c5c1f175b3e4) and to reduce code duplication. If there is something broken in nixos-install, it should be fixed there.
* make-disk-image: replace nixos-install by nix-env callsChristian Kögler2019-09-29
| | | | nixos-install can only be called from a machine
* nixos/lib/utils: Make the set recursive again, unbreak evalSarah Brofeldt2019-09-08
|
* Merge pull request #66274 from talyz/gitlabFlorian Klink2019-09-07
|\ | | | | nixos/gitlab: Add support for secure secrets and more
| * nixos/utils: Handle arbitrary secrets in JSON output filestalyz2019-09-06
| | | | | | | | | | | | Introduce new functions which allows modules to define options where, if the input is an attrset and the output is JSON, the user can define arbitrary secrets.
* | treewide: remove redundant recvolth2019-08-28
| |
* | Merge staging-next into stagingFrederik Rietdijk2019-08-28
|\|
| * Merge branch 'master' into flip-map-foreachdanbst2019-08-18
| |\
| * \ Merge branch 'master' into flip-map-foreachDanylo Hlynskyi2019-08-05
| |\ \
| * | | 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' ```
* | | | treewide: remove redundant quotesvolth2019-08-26
| |_|/ |/| |
* | | pkgs.lib -> libDomen Kožar2019-08-12
| | |
* | | make-options-doc: add asciidoc variantDomen Kožar2019-08-10
| | |
* | | make-options-doc: expose Nix setDomen Kožar2019-08-10
| | |
* | | Extract NixOS options documentation generation to a functionDomen Kožar2019-08-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Motivation is to support other repositories containing nixos modules that would like to generate options documentation: - nix-darwin - private repos - arion - ??
* | | 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.
* | nixos-test-driver: allow configuration of net frontend and backendAndrew Childs2019-07-22
| | | | | | | | | | | | When IPXE tests were added, an option was added for configuring only the frontend, and the backend configuration was dropped entirely. This caused most installer tests to fail.
* | nixos-test-driver: support netRomFileNikolay Amiantov2019-07-15
|/ | | | Needed for UEFI PXE netboot testing.
* treewide: use dontUnpackworldofpeace2019-07-01
|
* make-ext4-fs: Allows populating with custom filesSamuel Dionne-Riel2019-06-16
| | | | This will allow adding /boot files to the rootfs.
* 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
* nixos: doc: optionally include all modules in manual generationArian van Putten2019-03-05
| | | | | | | | | | | | | | | | | | | | Before this change `man 5 configuration.nix` would only show options of modules in the `baseModules` set, which consists only of the list of modules in `nixos/modules/module-list.nix` With this change applied and `documentation.nixos.includeAllModules` option enabled all modules included in `configuration.nix` file will be used instead. This makes configurations with custom modules self-documenting. It also means that importing non-`baseModules` modules like `gce.nix` or `azure.nix` will make their documentation available in `man 5 configuration.nix`. `documentation.nixos.includeAllModules` is currently set to `false` by default as enabling it usually uncovers bugs and prevents evaluation. It should be set to `true` in a release or two. This was originally implemented in #47177, edited for more configurability, documented and rebased onto master by @oxij.
* nixos/lib/testing.nix: config defaults to {}Matthew Bauer2019-02-06
| | | | | | | Fixes #51858 56e12aae54bc67cabe5aa7c8d055438af4f62b5e ends up passing config to pkgs. Unfortunately this might be null and pkgs/top-level/default.nix assumes it is an attrset. To fix this, we just make the default for config = {}. Thanks to @kristoff3r for tracking this down. /cc @domenkozar
* Add options to build disk image function (#50239)Travis Athougies2019-01-24
| | | | | | * add options to build disk image function * Revert suffix changes
* Merge pull request #54330 from samueldr/fix/disable-tests-shell-accessSamuel Dionne-Riel2019-01-19
|\ | | | | Revert "Add ssh backdoor to VM tests infrastructure."
| * Revert "Add ssh backdoor to VM tests infrastructure."Samuel Dionne-Riel2019-01-19
| | | | | | | | | | | | | | This reverts commit d6e3db44cf09d04f0a3cd5b7ccb4a5dc3b7bfaa9. See #53935 for explanations. In short, it may be causing issues with tests on the build infrastructure.
* | kernel config: add support for CONFIG_SQUASHFS_ZSTD (#52967)Danylo Hlynskyi2019-01-17
|/ | | Also, allow override `make-squashfs.nix` compression parameters.