nixpkgs/nixos/lib
Arthur Gautier 18c734d7f2 nixosTest: adds support for lib.extend
When lib overrides were used, before this commit, they would not be made
available in the configuration evaluation of nixosTest's nodes.

Sample code:
``` nix
let
  pkgs = import ./. {
    overlays = [
      (new: old: {
        lib = old.lib.extend (self: super: {
          sorry_dave = builtins.trace "There are no pod bay doors" "sorry dave";
        });
      })
    ];
  };
in
pkgs.testers.nixosTest {
  name = "demo lib overlay";

  nodes = {
    machine = { lib, ... }: {
      environment.etc."got-lib-overlay".text = lib.sorry_dave;
    };
  };

  testScript = { nodes }:
    ''
      start_all()
      machine.succeed('grep dave /etc/got-lib-overlay')
    '';
}
```
2023-06-29 09:13:44 -07:00
..
make-options-doc nixos/make-options-doc: deprecate docbook outputs 2023-06-13 16:56:32 +02:00
test-driver nixosTests.kexec: reconnect properly after 2nd kexec 2023-06-16 19:43:40 +02:00
testing nixosTest: adds support for lib.extend 2023-06-29 09:13:44 -07:00
default.nix
eval-cacheable-options.nix nixos,nixpkgs: Add module classes 2023-05-06 18:29:04 +02:00
eval-config-minimal.nix lib/modules: Move class out of specialArgs 2023-05-06 18:32:58 +02:00
eval-config.nix nixos/eval-config: Remove statically known mkIf 2023-05-10 15:55:09 +02:00
from-env.nix
make-channel.nix channel: add --show-trace to nix-env command 2023-02-03 23:02:47 +00:00
make-disk-image.nix nixos/qemu-vm: use persistent block device names 2023-06-16 19:36:03 +02:00
make-ext4-fs.nix
make-iso9660-image.nix make-iso9660-image: use __structuredAttrs 2023-05-11 14:25:44 +02:00
make-iso9660-image.sh make-iso9660-image: use __structuredAttrs 2023-05-11 14:25:44 +02:00
make-multi-disk-zfs-image.nix nixos/lib/make-(multi|single)-disk-zfs-image: use qemu_kvm (host arch) instead of qemu (all arches) 2023-04-28 23:50:44 +02:00
make-single-disk-zfs-image.nix nixos/lib/make-(multi|single)-disk-zfs-image: use qemu_kvm (host arch) instead of qemu (all arches) 2023-04-28 23:50:44 +02:00
make-squashfs.nix make-squashfs: use __structuredAttrs 2023-05-11 14:25:31 +02:00
make-system-tarball.nix
make-system-tarball.sh
qemu-common.nix nixos/qemu: set qemuSerialDevice for loongarch64 2023-06-26 08:58:20 +00:00
systemd-lib.nix nixos/lib: save triggers of systemd into nix store 2023-05-11 17:38:54 +08:00
systemd-types.nix
systemd-unit-options.nix systemd.units.<name>.wantedBy: fix documentation rendering 2023-05-18 18:04:31 +02:00
test-script-prepend.py
testing-python.nix
utils.nix