about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@gmail.com>2018-01-02T21·51+0100
committerVincent Ambo <tazjin@gmail.com>2018-01-02T21·51+0100
commit41a213054de9241a92833b8db5345715e4e6c66d (patch)
treece774c411f49e4e45700fe2258757fc40c74d06b
parentf9641cc1ed5c8436c296dd31af2745ddcdf3e426 (diff)
fix(nix): Correctly configure required kernel modules & VMWare guest
-rw-r--r--nix/configuration.nix10
1 files changed, 10 insertions, 0 deletions
diff --git a/nix/configuration.nix b/nix/configuration.nix
index 78f34cd037cf..1de11a16f9b6 100644
--- a/nix/configuration.nix
+++ b/nix/configuration.nix
@@ -7,12 +7,22 @@
   boot.loader.grub.version = 2;
   boot.loader.grub.device = "/dev/sda";
 
+  boot.initrd.availableKernelModules = [
+    "ata_piix"
+    "mptspi"
+    "sd_mod"
+    "sr_mod"
+  ];
+
   # Configure root disk
   fileSystems."/" = {
     device = "/dev/disk/by-label/nixos";
     fsType = "ext4";
   };
 
+  services.vmwareGuest.enable = true;
+  services.vmwareGuest.headless = true;
+
   time.timeZone = "Europe/Oslo";
 
   environment.systemPackages = with pkgs; [