8 cfg = config.boot.uvesafb;
19 enable = mkEnableOption "uvesafb";
23 default = "1024x768-32";
24 description = "Screen resolution in modedb format. See [uvesafb](https://docs.kernel.org/fb/uvesafb.html) and [modedb](https://docs.kernel.org/fb/modedb.html) documentation for more details. The default value is a sensible default but may be not ideal for all setups.";
27 v86d.package = mkOption {
29 description = "Which v86d package to use with uvesafb";
31 config.boot.kernelPackages.v86d.overrideAttrs (old: {
32 hardeningDisable = [ "all" ];
34 default = config.boot.kernelPackages.v86d.overrideAttrs (old: {
35 hardeningDisable = [ "all" ];
40 config = mkIf cfg.enable {
42 kernelModules = [ "uvesafb" ];
43 extraFiles."/usr/v86d".source = cfg.v86d.package;
47 "video=uvesafb:mode:${cfg.gfx-mode},mtrr:3,ywrap"
48 ''uvesafb.v86d="${cfg.v86d.package}/bin/v86d"''