pub-solar-os/hosts/hp500281.nix
2019-12-26 00:17:26 -07:00

49 lines
815 B
Nix

{ lib, pkgs, ... }:
let
inherit (builtins) readFile;
in
{
imports = [
../profiles/games
../profiles/misc
../profiles/misc/plex.nix
../profiles/misc/torrent.nix
../users/nrd
];
boot.initrd.availableKernelModules = [
"xhci_pci"
"ehci_pci"
"ahci"
"usbhid"
"sd_mod"
];
boot.kernelModules = [ "kvm-intel" ];
environment.sessionVariables = {
LIBVA_DRIVER_NAME = "iHD";
};
hardware.cpu.intel.updateMicrocode = true;
hardware.opengl.extraPackages = with pkgs; [
vaapiIntel
vaapiVdpau
libvdpau-va-gl
intel-media-driver
];
networking.networkmanager = {
enable = true;
};
nix.maxJobs = lib.mkDefault 4;
nix.systemFeatures = [ "gccarch-haswell" ];
boot.loader.systemd-boot = {
enable = true;
editor = false;
};
}