1 2 3 4
{ lib, pkgs, test, ... }: if test then { nixpkgs-unstable = lib.mkForce { file = "/var/empty"; }; } else {}