Files
dotfiles/hosts/satori/boot.nix
natto1784 d49f0b473c misc changes
xmonad: added new layout+keybinds, removed useless code
neovim: minor changes
hosts/satori: changed kernel to zen again
home/services and home/programs: minor changes
overlays: changed picom src and other minor changes
2021-09-12 06:24:49 +05:30

38 lines
1.1 KiB
Nix

{lib, config, pkgs, ... }:
{
boot = {
kernelPackages = pkgs.unstable.linuxPackages_zen;
initrd={
availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "sd_mod" "vfio-pci"];
/* preDeviceCommands = ''
DEVS="0000:01:00.0 0000:01:00.1 0000:01:00.2 0000:01:00.3"
for DEV in $DEVS; do
echo "vfio-pci" > /sys/bus/pci/devices/$DEV/driver_override
done
modprobe -i vfio-pci
'';*/
kernelModules = [];
};
kernelParams = [ "intel_pstate=active" "intel_iommu=on" ];
kernelModules = [ "kvm-intel" ];
extraModulePackages = with config.boot.kernelPackages; [ nvidia_x11 v4l2loopback];
loader = {
efi = {
canTouchEfiVariables = true;
efiSysMountPoint = "/boot/efi";
};
grub = {
enable = true;
# useOSProber = true;
efiSupport = true;
device = "nodev";
splashImage = ./cirno.png;
splashMode = "stretch";
configurationName = "nixbruh";
};
};
binfmt.emulatedSystems = [ "aarch64-linux" ];
};
}