2021-01-03 17:12:16 +01:00
|
|
|
{ config, lib, pkgs, modulesPath, ... }:
|
2021-05-29 18:05:31 +02:00
|
|
|
let sources = import ../../nix/sources.nix;
|
|
|
|
in {
|
2020-05-21 17:39:38 +02:00
|
|
|
|
2021-05-29 18:05:31 +02:00
|
|
|
imports = [
|
|
|
|
(modulesPath + "/installer/scan/not-detected.nix")
|
|
|
|
./.
|
2020-05-21 17:39:38 +02:00
|
|
|
"${sources.nixos-hardware}/common/cpu/intel"
|
2021-05-29 18:05:31 +02:00
|
|
|
];
|
2017-02-02 16:31:19 +01:00
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
|
2021-05-29 18:05:31 +02:00
|
|
|
boot.initrd.availableKernelModules =
|
|
|
|
[ "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
|
2020-05-21 17:39:38 +02:00
|
|
|
boot.initrd.kernelModules = [ ];
|
|
|
|
boot.kernelModules = [ "kvm-intel" ];
|
|
|
|
boot.extraModulePackages = [ ];
|
|
|
|
|
2021-05-29 18:05:31 +02:00
|
|
|
fileSystems."/" = {
|
|
|
|
device = "/dev/disk/by-uuid/3e148654-0ed8-4354-8159-e3499c6fa299";
|
|
|
|
fsType = "ext4";
|
|
|
|
};
|
2016-08-26 20:14:24 +02:00
|
|
|
|
2021-05-29 18:05:31 +02:00
|
|
|
fileSystems."/boot" = {
|
|
|
|
device = "/dev/disk/by-uuid/439E-26EA";
|
|
|
|
fsType = "vfat";
|
|
|
|
};
|
2016-08-26 20:14:24 +02:00
|
|
|
|
2020-05-21 17:39:38 +02:00
|
|
|
swapDevices = [ ];
|
2016-08-26 20:14:24 +02:00
|
|
|
|
|
|
|
nix.maxJobs = lib.mkDefault 4;
|
2020-05-21 17:39:38 +02:00
|
|
|
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
|
|
|
|
|
|
|
nixpkgs.config.packageOverrides = pkgs: {
|
|
|
|
vaapiIntel = pkgs.vaapiIntel.override { enableHybridCodec = true; };
|
|
|
|
};
|
2021-05-29 18:05:31 +02:00
|
|
|
hardware.opengl.extraPackages = with pkgs;
|
|
|
|
[
|
|
|
|
intel-media-driver # only available starting nixos-19.03 or the current nixos-unstable
|
|
|
|
];
|
2016-08-26 20:14:24 +02:00
|
|
|
}
|