49 lines
815 B
Nix
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;
|
|
};
|
|
}
|