fix: configure uConsole manually without nixos-uconsole module
- Module has hardware.raspberry-pi compatibility issues - Manual config like cyt-pi (display, firmware, GPU) - Keeps nixpkgs-uconsole for package compatibility - All hosts now evaluable
This commit is contained in:
10
flake.nix
10
flake.nix
@@ -96,8 +96,16 @@
|
|||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
nixpkgs.hostPlatform = "aarch64-linux";
|
nixpkgs.hostPlatform = "aarch64-linux";
|
||||||
nix.package = lix.packages."aarch64-linux".default;
|
nix.package = lix.packages."aarch64-linux".default;
|
||||||
|
|
||||||
|
# Manual uConsole CM5 hardware setup (module has compatibility issues)
|
||||||
|
# Display: 720x1280 landscape, panel on right
|
||||||
|
boot.kernelParams = [
|
||||||
|
"video=DSI-1:720x1280M@60D,panel_orientation=right_side_up"
|
||||||
|
"console=tty1"
|
||||||
|
];
|
||||||
|
hardware.enableRedistributableFirmware = true;
|
||||||
|
hardware.graphics.enable = true;
|
||||||
}
|
}
|
||||||
nixos-uconsole.nixosModules.uconsole-cm5
|
|
||||||
./hosts/uconsole/configuration.nix
|
./hosts/uconsole/configuration.nix
|
||||||
./hosts/uconsole/hardware-configuration.nix
|
./hosts/uconsole/hardware-configuration.nix
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -2,26 +2,8 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
# --- CORE HARDWARE (CM5 / RPi5) ---
|
# --- CORE HARDWARE (CM5 / RPi5) ---
|
||||||
# Module imported in flake.nix (nixos-uconsole.nixosModules.uconsole-cm5)
|
# Manual hardware config in flake.nix (nixos-uconsole module has compatibility issues)
|
||||||
|
# Display and firmware configured in flake.nix modules array
|
||||||
uconsole = {
|
|
||||||
enable = true;
|
|
||||||
variant = "cm5"; # Hardware target: CM5/RPi5
|
|
||||||
# Fixes the landscape orientation at boot
|
|
||||||
videoMode = "720x1280M@60D,panel_orientation=right_side_up";
|
|
||||||
};
|
|
||||||
|
|
||||||
# Firmware for Wi-Fi and Bluetooth
|
|
||||||
hardware.enableRedistributableFirmware = true;
|
|
||||||
|
|
||||||
# Enable GPU acceleration (VideoCore VII)
|
|
||||||
hardware.graphics.enable = true;
|
|
||||||
|
|
||||||
# Bootloader parameters for display rotation and console
|
|
||||||
boot.kernelParams = [
|
|
||||||
"video=DSI-1:720x1280M@60D,panel_orientation=right_side_up"
|
|
||||||
"console=tty1"
|
|
||||||
];
|
|
||||||
|
|
||||||
# --- BASIC HOST INFO ---
|
# --- BASIC HOST INFO ---
|
||||||
networking.hostName = "uConsole";
|
networking.hostName = "uConsole";
|
||||||
|
|||||||
Reference in New Issue
Block a user