my-nix/hosts/nixos/bunta_desktop/core/bootloader.nix
2023-06-15 11:40:56 +01:00

33 lines
695 B
Nix

{pkgs, ...}:
let
inputs.grub-theme = {
url = "github:catppuccin/grub";
flake = false;
};
in {
# Bootloader
boot = {
loader = {
grub = {
enable = true;
device = "/dev/sdc"; # "nodev";
useOSProber = true;
# efiSupport = true;
# theme = inputs.grub-theme + "/src/catppuccin-mocha-grub-theme";
};
/*
efi = {
canTouchEfiVariables = true;
efiSysMountPoint = "/boot/efi";
};
*/
};
extraModprobeConfig = "options kvm_intel nested=1";
supportedFilesystems = [ "ntfs" "btrfs" "mtpfs" ];
kernelModules = [ "kvm-intel" ];
kernelPackages = pkgs.linuxPackages_latest;
};
}