| Commit message (Collapse) | Author | Age |
|\
| |
| | |
nixos/slim: remove
|
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
|/
|
|
|
| |
It's a good idea to expand this in future to test code as well,
so we get type checking there as well.
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|\
| |
| | |
Port remaining test-driver functions to python
|
| | |
|
| | |
|
|\ \
| | |
| | | |
Boot test port fix
|
| | |
| | |
| | |
| | | |
This threw exceptions in boot menus
|
| |/
| |
| |
| | |
This crashed in the create-script case
|
|\ \
| |/
|/| |
Nixos integration test ports
|
| |
| |
| |
| | |
waitForWindow
|
| | |
|
|/
|
|
|
|
|
|
| |
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};
|
| |
|
|
|
|
| |
Thanks @blitz and @jtraue for help with implementing machine methods
|
| |
|
|
|
|
|
|
| |
`packages` was renamed to `storeContents` in
668c146e33291e933ccfb19fd39fab9cd2b7900d, but this comment
describing its purpose was not updated to match.
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
nixos-install can only be called from a machine
|
| |
|
|\
| |
| | |
nixos/gitlab: Add support for secure secrets and more
|
| |
| |
| |
| |
| |
| | |
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.
|
| | |
|
|\| |
|
| |\ |
|
| |\ \ |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
See `forEach`-introduction commit.
```
rg 'flip map ' --files-with-matches | xargs sed -i 's/flip map /forEach /g'
```
|
| | | |
| | | |
| | | |
| | | | |
This reverts commit 3b0534310c89d04fc3a9c5714b5a4d0f9fb0efca.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
See `foreach`-introduction commit.
```
rg 'flip map ' --files-with-matches | xargs sed -i 's/flip map /foreach /g'
```
|
| |_|/
|/| | |
|
| | | |
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Motivation is to support other repositories containing nixos
modules that would like to generate options documentation:
- nix-darwin
- private repos
- arion
- ??
|
| |/
|/|
| |
| |
| | |
The original form effectively forbade any NixOS configuration that is under
test to explicitly set the hostname.
|
| |
| |
| |
| |
| |
| | |
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.
|
|/
|
|
| |
Needed for UEFI PXE netboot testing.
|
| |
|
|
|
|
| |
This will allow adding /boot files to the rootfs.
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
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
* Revert suffix changes
|
|\
| |
| | |
Revert "Add ssh backdoor to VM tests infrastructure."
|
| |
| |
| |
| |
| |
| |
| | |
This reverts commit d6e3db44cf09d04f0a3cd5b7ccb4a5dc3b7bfaa9.
See #53935 for explanations. In short, it may be causing issues with
tests on the build infrastructure.
|
|/
|
| |
Also, allow override `make-squashfs.nix` compression parameters.
|