summary refs log tree commit diff
path: root/nixos/tests/nixops
AgeCommit message (Collapse)AuthorFilesLines
2023-08-09nixops_unstable: Fix tests attributeRobert Hensing1-4/+5
The .overrideAttrs part is ok now, but a "passthru' workaround is necessary now. See https://github.com/NixOS/nixpkgs/pull/247520
2023-03-15nixosTests.nixops.unstable.legacyNetwork: Use system.includeBuildDependenciesRobert Hensing1-5/+3
2022-09-24nixos/tests: Add namesRobert Hensing1-0/+1
2022-03-30nixos/tests/nixops: Remove sanitizeDerivationNameRobert Hensing1-1/+1
2022-03-03nixopsUnstable -> nixops_unstableRobert Hensing1-1/+1
Conform to https://nixos.org/manual/nixpkgs/unstable/#sec-package-naming
2022-01-26nixos/nix-daemon: use structural settingspolykernel2-2/+2
The `nix.*` options, apart from options for setting up the daemon itself, currently provide a lot of setting mappings for the Nix daemon configuration. The scope of the mapping yields convience, but the line where an option is considered essential is blurry. For instance, the `extra-sandbox-paths` mapping is provided without its primary consumer, and the corresponding `sandbox-paths` option is also not mapped. The current system increases the maintenance burden as maintainers have to closely follow upstream changes. In this case, there are two state versions of Nix which have to be maintained collectively, with different options avaliable. This commit aims to following the standard outlined in RFC 42[1] to implement a structural setting pattern. The Nix configuration is encoded at its core as key-value pairs which maps nicely to attribute sets, making it feasible to express in the Nix language itself. Some existing options are kept such as `buildMachines` and `registry` which present a simplified interface to managing the respective settings. The interface is exposed as `nix.settings`. Legacy configurations are mapped to their corresponding options under `nix.settings` for backwards compatibility. Various options settings in other nixos modules and relevant tests have been updated to use structural setting for consistency. The generation and validation of the configration file has been modified to use `writeTextFile` instead of `runCommand` for clarity. Note that validation is now mandatory as strict checking of options has been pushed down to the derivation level due to freeformType consuming unmatched options. Furthermore, validation can not occur when cross-compiling due to current limitations. A new option `publicHostKey` was added to the `buildMachines` submodule corresponding to the base64 encoded public host key settings exposed in the builder syntax. The build machine generation was subsequently rewritten to use `concatStringsSep` for better performance by grouping concatenations. [1] - https://github.com/NixOS/rfcs/blob/master/rfcs/0042-config-option.md
2021-11-21nixos/qemu-vm: default memorySize 384 -> 1024Artturin1-1/+0
the default hasn't been changed since 2009 this can improve our test performances nixos/tests: remove explicit memorySize <1024 1024MiB is now the default
2021-11-05nixosTests: Redirect stdout to stderr when detachingRobert Hensing1-1/+1
Avoids blocking on stdout.
2021-10-31nixosTests.nixops: Fix deprecation warningRobert Hensing1-1/+1
2021-10-18nixopsUnstable: Add testRobert Hensing3-0/+161