From a748a6c85a700cf2aae0e37d59faf29f6dc79f40 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Sat, 16 Jun 2018 19:18:11 -0700 Subject: [PATCH] [NixOS] Use grub for uber-loaner --- nixos/machines/uber-loaner.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/nixos/machines/uber-loaner.nix b/nixos/machines/uber-loaner.nix index 2188b325..4d0c89df 100644 --- a/nixos/machines/uber-loaner.nix +++ b/nixos/machines/uber-loaner.nix @@ -9,6 +9,14 @@ boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usbhid" "sd_mod" ]; boot.kernelModules = [ "kvm-intel" ]; boot.extraModulePackages = [ ]; + boot.loader.grub.efiSupport = true; + boot.loader.grub.device = "nodev"; + boot.loader.grub.enable = true; + + fileSystems."/boot" = { + device = "/dev/disk/by-label/EFI"; + fsType = "vfat"; + }; fileSystems."/" = { device = "/dev/disk/by-uuid/2958f04b-8387-4a0c-abc1-f12036c53581"; @@ -20,8 +28,13 @@ fsType = "tmpfs"; }; + environment.systemPackages = [ + pkgs.linuxPackages.rtl8814au + ]; + swapDevices = [ ]; nix.maxJobs = lib.mkDefault 4; powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; + users.extraUsers.root.initialHashedPassword = ""; }