devos/hosts/hp500281.nix

48 lines
793 B
Nix
Raw Normal View History

2019-12-18 02:53:29 +01:00
{ lib, pkgs, ... }:
let
inherit (builtins) readFile;
in
{
2019-12-15 05:37:46 +01:00
imports = [
2019-12-18 07:33:06 +01:00
../users/nrd
2019-12-17 05:15:48 +01:00
../profiles/misc
2019-12-18 08:34:30 +01:00
../profiles/misc/plex.nix
2019-12-18 08:57:31 +01:00
../profiles/misc/torrent.nix
2019-12-15 05:37:46 +01:00
];
2019-12-17 05:15:48 +01:00
boot.initrd.availableKernelModules = [
"xhci_pci"
"ehci_pci"
"ahci"
"usbhid"
"sd_mod"
];
boot.kernelModules = [ "kvm-intel" ];
2019-12-18 02:53:29 +01:00
environment.sessionVariables = {
LIBVA_DRIVER_NAME = "iHD";
};
hardware.cpu.intel.updateMicrocode = true;
hardware.opengl.extraPackages = with pkgs; [
vaapiIntel
vaapiVdpau
libvdpau-va-gl
intel-media-driver
];
2019-12-17 05:15:48 +01:00
networking.networkmanager = {
enable = true;
};
nix.maxJobs = lib.mkDefault 4;
2019-12-18 01:49:26 +01:00
nix.systemFeatures = [ "gccarch-haswell" ];
boot.loader.systemd-boot = {
enable = true;
editor = false;
};
}