Add plymouth to modules
This commit is contained in:
parent
86238b157c
commit
8ffab823ca
3 changed files with 20 additions and 3 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
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