Skip to content

Commit

Permalink
hardware/allwinner: Add installation instructions...
Browse files Browse the repository at this point in the history
... except for the phone UX.
  • Loading branch information
samueldr committed Feb 26, 2022
1 parent 173ab5c commit fd71e32
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions modules/hardware/allwinner/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ let
];
anyAllwinner = lib.any (soc: config.hardware.socs.${soc}.enable) allwinnerSOCs;
anyAllwinner64 = anyAllwinner && config.system.system == "aarch64-linux";
isPhoneUX = config.Tow-Boot.phone-ux.enable;
in
{
options = {
Expand Down Expand Up @@ -104,5 +105,16 @@ in
(mkIf cfg.allwinner-h5.enable {
system.system = "aarch64-linux";
})

# Documentation fragments
(mkIf (anyAllwinner && !isPhoneUX) {
documentation.sections.installationInstructions =
lib.mkDefault
(config.documentation.helpers.genericInstallationInstructionsTemplate {
# Allwinner will prefer SD card always.
startupConflictNote = "";
})
;
})
];
}

0 comments on commit fd71e32

Please sign in to comment.