mirror of
https://github.com/nix-community/nixos-anywhere.git
synced 2024-09-11 16:45:28 +03:00
15 lines
375 B
Nix
15 lines
375 B
Nix
test:
|
|
{ pkgs ? import <nixpkgs> { }, ... } @ args:
|
|
let
|
|
inherit (pkgs) lib;
|
|
nixos-lib = import (pkgs.path + "/nixos/lib") { };
|
|
in
|
|
(nixos-lib.runTest {
|
|
hostPkgs = pkgs;
|
|
# speed-up evaluation
|
|
defaults.documentation.enable = lib.mkDefault false;
|
|
# to accept external dependencies such as disko
|
|
node.specialArgs.inputs = args;
|
|
imports = [ test ];
|
|
}).config.result
|