Files
nix/modules/nixos/bootloader.nix

42 lines
780 B
Nix

{ config, pkgs, ... }:
{
boot.binfmt.registrations.appimage = {
wrapInterpreterInShell = false;
interpreter = "${pkgs.appimage-run}/bin/appimage-run";
recognitionType = "magic";
offset = 0;
mask = ''\xff\xff\xff\xff\x00\x00\x00\x00\xff\xff\xff'';
magicOrExtension = ''\x7fELF....AI\x02'';
};
boot.supportedFilesystems = [ "ntfs" ];
# boot.plymouth = {
# enable = true;
# };
boot.initrd.verbose = true;
boot.kernelParams = [
# "quiet"
"splash"
"boot.shell_on_fail"
];
boot.loader = {
efi = {
# canTouchEfiVariables = true;
};
grub = {
efiSupport = true;
device = "nodev";
efiInstallAsRemovable = true;
# will kill pc if triplebooting w*ndows, nixos and cachyos
useOSProber = true;
gfxmodeEfi = "1920x1080";
};
};
}