dotfiles/nixos/physical/nuc.nix

42 lines
1.1 KiB
Nix
Raw Normal View History

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