Created
February 4, 2019 12:28
-
-
Save johanot/6df3e8a4028766ccd19b6a6f3874e426 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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