add plymouth
This commit is contained in:
parent
88e5fb2c44
commit
130b55ea63
3 changed files with 30 additions and 1 deletions
|
@ -18,6 +18,8 @@
|
|||
|
||||
modules = {
|
||||
desktop = {
|
||||
# plymouth
|
||||
plymouth.enable = true;
|
||||
kitty.enable = true;
|
||||
dwm.enable = true;
|
||||
xmonad.enable = false;
|
||||
|
|
|
@ -18,5 +18,7 @@
|
|||
./media
|
||||
./dunst
|
||||
./picom
|
||||
# boot
|
||||
./plymouth
|
||||
];
|
||||
}
|
||||
|
|
25
modules/desktop/plymouth/default.nix
Normal file
25
modules/desktop/plymouth/default.nix
Normal file
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
outputs,
|
||||
options,
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
cfg = config.modules.desktop.plymouth;
|
||||
in {
|
||||
options.modules.desktop.plymouth = {
|
||||
enable = mkEnableOption false;
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
boot.plymouth = {
|
||||
enable = true;
|
||||
extraConfig = ''
|
||||
[Daemon]
|
||||
ShowDelay=5
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue