4 patchedPkgs = pkgs.extend (new: old: {
5 lib = old.lib.extend (self: super: {
6 sorry_dave = "sorry dave";
11 name = "demo lib overlay";
14 machine = { lib, ... }: {
15 environment.etc."got-lib-overlay".text = lib.sorry_dave;
19 # We don't need to run an actual test. Instead we build the `machine` configuration
20 # and call it a day, because that already proves that `lib` is wired up correctly.
21 # See the attrset returned at the bottom of this file.
25 inherit (patchedPkgs.testers) nixosTest runNixOSTest;
26 evaluationNixosTest = nixosTest testBody;
27 evaluationRunNixOSTest = runNixOSTest testBody;
29 nixosTest = evaluationNixosTest.driver.nodes.machine.system.build.toplevel;
30 runNixOSTest = evaluationRunNixOSTest.driver.nodes.machine.system.build.toplevel;