Skip to content

Instantly share code, notes, and snippets.

@socksy
Created November 29, 2015 22:36
Show Gist options
  • Save socksy/bccc2ffa8360a8f0b468 to your computer and use it in GitHub Desktop.
Save socksy/bccc2ffa8360a8f0b468 to your computer and use it in GitHub Desktop.
{ config, pkgs, ... }:
{
# Use the gummiboot efi boot loader.
# n.b. no GRUB settings like everyone tells you to do
boot.loader.gummiboot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
networking.enableB43Firmware = true;
networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
#to get the sound card to work
boot.extraModprobeConfig = ''
options snd_hda_intel index=0 model=intel-mac-auto id=PCH
options snd_hda_intel index=1 model=intel-mac-auto id=HDMI
options hid_apple fnmode=2
'';
# this is seemingly a requirement for wifi to work
boot.kernelPackages = pkgs.linuxPackages_latest;
# wifi driver (make sure nixpkgs.config.allowUnfree)
boot.extraModulePackages = [ config.boot.kernelPackages.broadcom_sta ];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment