mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-12-25 02:11:02 +01:00
radxa/rock-pi-e: init
This commit is contained in:
parent
76a98e3958
commit
9430c63e02
4 changed files with 30 additions and 0 deletions
|
|
@ -57,6 +57,14 @@ Below is an annoated flake example to create the initial boot image.
|
|||
system = "aarch64-linux";
|
||||
modules = [
|
||||
nixos-hardware.nixosModules.rock-4c-plus # Update the system according to your device.
|
||||
|
||||
# Or, if the default platform firmware is not available in the NixOS version you are using:
|
||||
# (import nixos-hardware.nixosModules.rock-pi-e {
|
||||
# lib = nixpkgs-unfree.lib;
|
||||
# config = nixpkgs-unfree.config;
|
||||
# pkgs = nixpkgs-unfree.legacyPackages.aarch64-linux;
|
||||
# })
|
||||
|
||||
disko.nixosModules.disko # disko usage is optional in the running system, but we need it to generate the initial boot image.
|
||||
"${nixos-hardware}/radxa/disko.nix" # Common Radxa Disko profile. It is system-agnostic.
|
||||
{
|
||||
|
|
|
|||
20
radxa/rock-pi-e/default.nix
Normal file
20
radxa/rock-pi-e/default.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{ lib
|
||||
, pkgs
|
||||
, config
|
||||
, ...
|
||||
}: {
|
||||
imports = [
|
||||
../.
|
||||
../../rockchip
|
||||
];
|
||||
|
||||
config = {
|
||||
hardware = {
|
||||
radxa.enable = true;
|
||||
rockchip = {
|
||||
rk3328.enable = true;
|
||||
platformFirmware = pkgs.ubootRockPiE;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue