feat(gui): enable plymouth boot animation

This commit is contained in:
514fpv 2024-01-02 16:36:28 +08:00
parent 8ae36ad4cd
commit 9c11e58813
Signed by: koishi
SSH key fingerprint: SHA256:axz0uIzzY+5W19i7QOUuiw5LSqhKfCBKPf3L4xFRxLw
2 changed files with 27 additions and 0 deletions

View file

@ -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;