Add plymouth to modules
This commit is contained in:
parent
86238b157c
commit
8ffab823ca
3 changed files with 20 additions and 3 deletions
|
|
@ -28,6 +28,7 @@
|
|||
./nextcloud.nix
|
||||
./oxi
|
||||
./piper.nix
|
||||
./plymouth.nix
|
||||
./printing.nix
|
||||
./scripts.nix
|
||||
./sddm.nix
|
||||
|
|
|
|||
19
modules/programs/plymouth.nix
Normal file
19
modules/programs/plymouth.nix
Normal 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; }
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue