diff --git a/nixos/modules/module-list.nix b/nixos/modules/module-list.nix index 9cc3d73d2956..a8cb957ffe21 100644 --- a/nixos/modules/module-list.nix +++ b/nixos/modules/module-list.nix @@ -724,7 +724,6 @@ ./virtualisation/lxcfs.nix ./virtualisation/lxd.nix ./virtualisation/amazon-options.nix - ./virtualisation/hyperv-guest.nix ./virtualisation/openvswitch.nix ./virtualisation/parallels-guest.nix ./virtualisation/rkt.nix diff --git a/nixos/modules/virtualisation/hyperv-guest.nix b/nixos/modules/virtualisation/hyperv-guest.nix deleted file mode 100644 index ecd2a8117710..000000000000 --- a/nixos/modules/virtualisation/hyperv-guest.nix +++ /dev/null @@ -1,37 +0,0 @@ -{ config, lib, pkgs, ... }: - -with lib; - -let - cfg = config.virtualisation.hypervGuest; - -in { - options = { - virtualisation.hypervGuest = { - enable = mkEnableOption "Hyper-V Guest Support"; - }; - }; - - config = mkIf cfg.enable { - environment.systemPackages = [ config.boot.kernelPackages.hyperv-daemons.bin ]; - - security.rngd.enable = false; - - # enable hotadding memory - services.udev.packages = lib.singleton (pkgs.writeTextFile { - name = "hyperv-memory-hotadd-udev-rules"; - destination = "/etc/udev/rules.d/99-hyperv-memory-hotadd.rules"; - text = '' - ACTION="add", SUBSYSTEM=="memory", ATTR{state}="online" - ''; - }); - - systemd = { - packages = [ config.boot.kernelPackages.hyperv-daemons.lib ]; - - targets.hyperv-daemons = { - wantedBy = [ "multi-user.target" ]; - }; - }; - }; -}