Skip to content

Instantly share code, notes, and snippets.

@johanot
Created February 7, 2019 16:24
Show Gist options
  • Select an option

  • Save johanot/0e343dabefad51c273e4cacf5916ff27 to your computer and use it in GitHub Desktop.

Select an option

Save johanot/0e343dabefad51c273e4cacf5916ff27 to your computer and use it in GitHub Desktop.
let
host = { ... }: {
networking.hostName = "foo";
disabledModules = [
"hardware/video/ati.nix"
"hardware/video/amdgpu-pro.nix" ];
};
bug = { config, lib, ... }:
{
services.vmwareGuest = lib.mkIf (config.networking.hostName == "foo") {
enable = true;
};
services.xserver.enable = 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