Geoffrey Frogeye
36608fa9e4
It took 3 days to investigate by myself and only get a partial idea of the issue, but 5 minutes to ask for support and another 5 to get a working solution. Hopefully lesson learned.
31 lines
916 B
Nix
31 lines
916 B
Nix
{ pkgs, config, ... }:
|
|
{
|
|
imports = [
|
|
# First commit before 23.05 release date:
|
|
"${builtins.fetchTarball "https://github.com/NixOS/nixos-hardware/archive/468a7a108108908c7a35d6549f1e1f0236a9448a.tar.gz"}/pine64/pinebook-pro"
|
|
];
|
|
|
|
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;
|
|
|
|
# Otherwise it will not show stage1 echo and prompt
|
|
kernelParams = ["console=tty0"];
|
|
|
|
# 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";
|
|
};
|
|
};
|
|
};
|
|
|
|
}
|