feat(plymouth): initial plymouth config

This commit is contained in:
ooks-io 2024-03-11 12:13:39 +13:00
parent 5bfb96679b
commit 9ace54121a
3 changed files with 20 additions and 2 deletions

View file

@ -13,7 +13,7 @@
ooks.enable = true; ooks.enable = true;
shell.fish.enable = true; shell.fish.enable = true;
}; };
networking = { networking = {
hostName = "ookst480s"; hostName = "ookst480s";
}; };

View file

@ -1,7 +1,7 @@
{ lib, ... }: { lib, ... }:
{ {
imports = [ ./systemd ]; imports = [ ./systemd ./plymouth ];
options.systemModules = { options.systemModules = {
bootloader = { bootloader = {
@ -9,5 +9,8 @@
enable = lib.mkEnableOption "Enable systemd bootloader module"; enable = lib.mkEnableOption "Enable systemd bootloader module";
}; };
}; };
plymouth = {
enable = lib.mkEnableOption "Enable plymouth bootscreen";
};
}; };
} }

View 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";
};
};
}