mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 11:44:07 +00:00
* Disable all fbcondecor-related stuff if boot.vesa is disabled.
svn path=/nixos/trunk/; revision=30343
This commit is contained in:
parent
0446f652a2
commit
fdc51c2c97
@ -120,11 +120,7 @@ let kernel = config.boot.kernelPackages.kernel; in
|
||||
system.modulesTree = [ kernel ] ++ config.boot.extraModulePackages;
|
||||
|
||||
boot.kernelParams =
|
||||
[ "splash=verbose"
|
||||
# Force the Completely Fair Scheduler to be used by default.
|
||||
#"elevator=cfq"
|
||||
] ++
|
||||
optional config.boot.vesa "vga=0x317";
|
||||
optionals config.boot.vesa [ "splash=verbose" "vga=0x317" ];
|
||||
|
||||
boot.kernelModules = [ "loop" ];
|
||||
|
||||
|
@ -91,7 +91,7 @@ let
|
||||
|
||||
|
||||
enableSplashScreen =
|
||||
config.boot.initrd.enableSplashScreen && kernelPackages.splashutils != null;
|
||||
config.boot.vesa && config.boot.initrd.enableSplashScreen && kernelPackages.splashutils != null;
|
||||
|
||||
|
||||
# Some additional utilities needed in stage 1, like mount, lvm, fsck
|
||||
|
@ -50,7 +50,7 @@ in
|
||||
services.ttyBackgrounds = {
|
||||
|
||||
enable = mkOption {
|
||||
default = splashutils != null;
|
||||
default = true;
|
||||
description = ''
|
||||
Whether to enable graphical backgrounds for the virtual consoles.
|
||||
'';
|
||||
@ -82,11 +82,11 @@ in
|
||||
|
||||
###### implementation
|
||||
|
||||
config = mkIf config.services.ttyBackgrounds.enable (
|
||||
mkAssert (splashutils != null) "
|
||||
config = mkIf (config.boot.vesa && config.services.ttyBackgrounds.enable && splashutils != null) (
|
||||
mkAssert (splashutils != null) ''
|
||||
The kernelPackages does not provide splashutils, as required by ttyBackgrounds.
|
||||
Either provide kernelPackages with splashutils, or disable ttyBackgrounds.
|
||||
" {
|
||||
'' {
|
||||
|
||||
services.ttyBackgrounds.specificThemes = singleton
|
||||
{ tty = config.services.syslogd.tty;
|
||||
|
Loading…
Reference in New Issue
Block a user