Skip to content

Instantly share code, notes, and snippets.

@johanot
Created February 4, 2019 12:28
Show Gist options
  • Select an option

  • Save johanot/6df3e8a4028766ccd19b6a6f3874e426 to your computer and use it in GitHub Desktop.

Select an option

Save johanot/6df3e8a4028766ccd19b6a6f3874e426 to your computer and use it in GitHub Desktop.
let
host = { ... }: {
networking.hostName = "foo";
};
bug = { config, lib, ... }:
{
services.vmwareGuest = lib.mkIf (config.networking.hostName == "foo") {
enable = true;
headless = true;
};
};
in
import <nixpkgs/nixos/lib/eval-config.nix> {
modules = [ host bug ];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment