Files
nix-config/systems/aarch64-linux/macbook-pro-nixos/boot.nix
2026-02-09 16:01:50 -06:00

44 lines
895 B
Nix

{ lib, pkgs, namespace, ... }:
{
# Use the systemd-boot EFI boot loader.
boot = {
loader = {
systemd-boot = {
enable = lib.mkForce true;
configurationLimit = 15;
consoleMode = lib.mkDefault "max";
};
efi.canTouchEfiVariables = lib.mkForce false;
};
kernelParams = [
"apple_dcp.show_notch=1"
"melt_my_mac=1" # enable fan control
];
extraModprobeConfig = ''
options hid_apple iso_layout=0
'';
m1n1CustomLogo = ./NixOS.png;
initrd = {
availableKernelModules = {
bcachefs = false;
};
kernelModules = {
bcachefs = lib.mkForce false;
};
};
supportedFilesystems = {
apfs = lib.mkForce true;
};
plymouth = {
theme = "nixos-bgrt-apple";
themePackages = with pkgs.${namespace}; [
plymouth-bgrt-apple
];
};
};
}