mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2026-12-04 23:13:29 +01:00
radxa/rock-pi-e: init
This commit is contained in:
1 parent
76a98e3958
commit
9430c63e02
4 files changed
+30
No files matched your search
@@ -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.
|
||||
{
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
{ lib
|
||||
, pkgs
|
||||
, config
|
||||
, ...
|
||||
}: {
|
||||
imports = [
|
||||
../.
|
||||
../../rockchip
|
||||
];
|
||||
|
||||
config = {
|
||||
hardware = {
|
||||
radxa.enable = true;
|
||||
rockchip = {
|
||||
rk3328.enable = true;
|
||||
platformFirmware = pkgs.ubootRockPiE;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user