2023-11-22 13:38:25 +01:00
|
|
|
{ pkgs, config, ... }:
|
2023-10-28 22:09:36 +02:00
|
|
|
{
|
|
|
|
imports = [
|
2023-11-30 19:01:55 +01:00
|
|
|
<nixos-hardware/pine64/pinebook-pro>
|
2023-10-28 22:09:36 +02:00
|
|
|
];
|
2023-11-28 20:53:18 +01:00
|
|
|
|
2023-11-28 00:34:30 +01:00
|
|
|
boot = {
|
|
|
|
# nixos-hardware use latest kernel by default. It has been set a while ago, we maybe don't need it anymore?
|
|
|
|
kernelPackages = pkgs.linuxPackages;
|
|
|
|
|
2023-11-29 23:00:46 +01:00
|
|
|
# Otherwise it will not show stage1 echo and prompt
|
2023-11-30 19:01:55 +01:00
|
|
|
# UPST
|
2023-11-29 23:00:46 +01:00
|
|
|
kernelParams = ["console=tty0"];
|
|
|
|
|
2023-11-28 00:34:30 +01:00
|
|
|
# Pinebook supports UEFI, at least when tow-boot is installed on the SPI
|
|
|
|
loader = {
|
|
|
|
# EFI Variables don't work (no generation appears in systemd-boot)
|
|
|
|
efi.canTouchEfiVariables = false;
|
|
|
|
|
|
|
|
# systemd-boot crashes after booting, so GRUB it is
|
|
|
|
grub = {
|
|
|
|
enable = true;
|
|
|
|
efiSupport = true;
|
|
|
|
efiInstallAsRemovable = true;
|
|
|
|
device = "nodev";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-10-28 22:09:36 +02:00
|
|
|
}
|