diff options
author | Peter Hoeg <peter@hoeg.com> | 2018-05-28 15:24:29 +0800 |
---|---|---|
committer | Peter Hoeg <peter@hoeg.com> | 2018-05-28 15:24:29 +0800 |
commit | d5d3184e24655ec500a7b06c029934308219be12 (patch) | |
tree | 44613a9308fbf726fe0cb09d9d8f5e4f9d3039b3 /nixos/modules/virtualisation | |
parent | 5b468ea6b1d8d243847a05bdf5603e8abdfd7b4e (diff) | |
download | nixlib-d5d3184e24655ec500a7b06c029934308219be12.tar nixlib-d5d3184e24655ec500a7b06c029934308219be12.tar.gz nixlib-d5d3184e24655ec500a7b06c029934308219be12.tar.bz2 nixlib-d5d3184e24655ec500a7b06c029934308219be12.tar.lz nixlib-d5d3184e24655ec500a7b06c029934308219be12.tar.xz nixlib-d5d3184e24655ec500a7b06c029934308219be12.tar.zst nixlib-d5d3184e24655ec500a7b06c029934308219be12.zip |
vmware: move from servers to virtualisation where it belongs
Diffstat (limited to 'nixos/modules/virtualisation')
-rw-r--r-- | nixos/modules/virtualisation/vmware-guest.nix | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/nixos/modules/virtualisation/vmware-guest.nix b/nixos/modules/virtualisation/vmware-guest.nix index 68930a0e3254..b1da387271ca 100644 --- a/nixos/modules/virtualisation/vmware-guest.nix +++ b/nixos/modules/virtualisation/vmware-guest.nix @@ -3,19 +3,17 @@ with lib; let - cfg = config.services.vmwareGuest; + cfg = config.virtualisation.vmware.guest; open-vm-tools = if cfg.headless then pkgs.open-vm-tools-headless else pkgs.open-vm-tools; xf86inputvmmouse = pkgs.xorg.xf86inputvmmouse; in { - options = { - services.vmwareGuest = { - enable = mkEnableOption "VMWare Guest Support"; - headless = mkOption { - type = types.bool; - default = false; - description = "Whether to disable X11-related features."; - }; + options.virtualisation.vmware.guest = { + enable = mkEnableOption "VMWare Guest Support"; + headless = mkOption { + type = types.bool; + default = false; + description = "Whether to disable X11-related features."; }; }; @@ -25,6 +23,8 @@ in message = "VMWare guest is not currently supported on ${pkgs.stdenv.system}"; } ]; + boot.initrd.kernelModules = [ "vmw_pvscsi" ]; + environment.systemPackages = [ open-vm-tools ]; systemd.services.vmware = |