feat(plymouth): initial plymouth config
This commit is contained in:
parent
5bfb96679b
commit
9ace54121a
3 changed files with 20 additions and 2 deletions
|
|
@ -13,7 +13,7 @@
|
|||
ooks.enable = true;
|
||||
shell.fish.enable = true;
|
||||
};
|
||||
|
||||
|
||||
networking = {
|
||||
hostName = "ookst480s";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{ lib, ... }:
|
||||
|
||||
{
|
||||
imports = [ ./systemd ];
|
||||
imports = [ ./systemd ./plymouth ];
|
||||
|
||||
options.systemModules = {
|
||||
bootloader = {
|
||||
|
|
@ -9,5 +9,8 @@
|
|||
enable = lib.mkEnableOption "Enable systemd bootloader module";
|
||||
};
|
||||
};
|
||||
plymouth = {
|
||||
enable = lib.mkEnableOption "Enable plymouth bootscreen";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
15
system/modules/bootloader/plymouth/default.nix
Normal file
15
system/modules/bootloader/plymouth/default.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{ lib, config, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.systemModules.plymouth;
|
||||
in
|
||||
|
||||
{
|
||||
config = lib.mkIf cfg.enable {
|
||||
boot.plymouth = {
|
||||
enable = true;
|
||||
themePackages = [(pkgs.catppuccin-plymouth.override {variant = "mocha";})];
|
||||
theme = "catppuccin-mocha";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue