1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2025-01-02 04:47:13 +03:00

fb_modes can now be nulled.

This commit is contained in:
Samuel Dionne-Riel 2018-06-17 19:57:42 -04:00
parent ba7e531519
commit 7be3b3474b

View File

@ -14,7 +14,8 @@ in
type = types.integer;
};
fb_modes = mkOption {
type = types.path;
type = types.nullOr types.path;
default = null;
description = ''
This file will be made available under /etc/fb.modes, and will be used
by `fbset` to setup the framebuffer.
@ -22,7 +23,7 @@ in
};
};
config.mobile.boot.stage-1 = lib.mkIf (cfg.fb_modes != null) {
config.mobile.boot.stage-1 = mkIf (cfg.fb_modes != null) {
contents = [
{ object = cfg.fb_modes; symlink = "/etc/fb.modes"; }
];