feat(gui): enable plymouth boot animation
This commit is contained in:
parent
8ae36ad4cd
commit
9c11e58813
|
@ -4,6 +4,8 @@
|
|||
, ... }: with lib; let
|
||||
cfg = config.faucet.gui;
|
||||
in {
|
||||
imports = [ ./plymouth.nix ];
|
||||
|
||||
options.faucet.gui = {
|
||||
enable = mkEnableOption "various setup required for GUI and support software";
|
||||
type = mkOption {
|
||||
|
@ -31,6 +33,8 @@ in {
|
|||
optional (cfg.type == "amdgpu") "amdgpu";
|
||||
# has to be enabled even when using wayland
|
||||
services.xserver.enable = true;
|
||||
# inhibits default display manager
|
||||
services.xserver.displayManager.startx.enable = mkDefault true;
|
||||
|
||||
hardware.nvidia = mkIf ((cfg.type == "nvidia") || (cfg.type == "prime")) {
|
||||
modesetting.enable = true;
|
||||
|
|
23
faucet/gui/plymouth.nix
Normal file
23
faucet/gui/plymouth.nix
Normal file
|
@ -0,0 +1,23 @@
|
|||
{ pkgs
|
||||
, lib
|
||||
, config
|
||||
, ... }: with lib; let
|
||||
cfg = config.faucet.gui;
|
||||
in mkIf cfg.enable {
|
||||
boot = {
|
||||
loader.timeout = lib.mkDefault 0;
|
||||
consoleLogLevel = 0;
|
||||
initrd.verbose = false;
|
||||
initrd.systemd.enable = true;
|
||||
plymouth.enable = true;
|
||||
kernelParams = [
|
||||
"quiet"
|
||||
"splash"
|
||||
"i915.fastboot=1"
|
||||
"loglevel=3"
|
||||
"rd.systemd.show_status=false"
|
||||
"rd.udev.log_level=3"
|
||||
"udev.log_priority=3"
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue