Add plymouth to modules

This commit is contained in:
DashieTM 2024-12-22 15:50:26 +01:00
parent 86238b157c
commit 8ffab823ca
3 changed files with 20 additions and 3 deletions

View file

@ -22,9 +22,6 @@ in
}; };
efi.canTouchEfiVariables = true; efi.canTouchEfiVariables = true;
}; };
plymouth = {
enable = true;
};
kernelPackages = lib.mkDefault pkgs.linuxPackages_latest; kernelPackages = lib.mkDefault pkgs.linuxPackages_latest;
initrd = { initrd = {
verbose = false; verbose = false;

View file

@ -28,6 +28,7 @@
./nextcloud.nix ./nextcloud.nix
./oxi ./oxi
./piper.nix ./piper.nix
./plymouth.nix
./printing.nix ./printing.nix
./scripts.nix ./scripts.nix
./sddm.nix ./sddm.nix

View file

@ -0,0 +1,19 @@
{
lib,
config,
options,
...
}:
{
options.mods.plymouth = {
enable = lib.mkOption {
default = true;
example = false;
type = lib.types.bool;
description = "Enables the plymouth";
};
};
config = lib.mkIf config.mods.plymouth.enable (
lib.optionalAttrs (options ? boot.plymouth) { boot.plymouth.enable = true; }
);
}