From 7be3b3474b0f5df84f852269c79bcac4b20ea682 Mon Sep 17 00:00:00 2001 From: Samuel Dionne-Riel Date: Sun, 17 Jun 2018 19:57:42 -0400 Subject: [PATCH] fb_modes can now be nulled. --- modules/hardware-screen.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/hardware-screen.nix b/modules/hardware-screen.nix index 934f1358..5a2db61b 100644 --- a/modules/hardware-screen.nix +++ b/modules/hardware-screen.nix @@ -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"; } ];