Files
nixos-hardware/rockchip/default.nix
ZHANG Yuntian 80340dcf86 rockchip/rk3399: reverse dependency order
This order works better when we have more SoCs.
2025-02-24 08:22:39 +00:00

38 lines
747 B
Nix

{ lib
, pkgs
, config
, ...
}:
let
cfg = config.hardware.rockchip;
in {
imports = [
./rk3399
];
options.hardware.rockchip = {
enable = lib.mkEnableOption "Rockchip SoC support";
diskoImageName = lib.mkOption {
type = lib.types.str;
default = "main.raw";
description = ''
The output image name for Disko.
Can be used by diskoExtraPostVM.
'';
};
diskoExtraPostVM = lib.mkOption {
type = lib.types.str;
description = ''
The post VM hook for Disko's Image Builder.
Can be used to install platform firmware like U-Boot.
'';
};
};
config = lib.mkIf cfg.enable {
boot = {
kernelParams = [ "console=ttyS2,1500000n8" ];
};
};
}