feat(nixos): add support for plymouth (#166)

Co-authored-by: seth <getchoo@tuta.io>
This commit is contained in:
Weathercold 2024-05-14 00:10:42 -04:00 committed by GitHub
parent e77424fd33
commit 9ffc6b8c26
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 26 additions and 1 deletions

View file

@ -0,0 +1,22 @@
{ config
, pkgs
, lib
, ...
}:
let
inherit (lib) ctp mkIf;
cfg = config.boot.plymouth.catppuccin;
enable = cfg.enable && config.boot.plymouth.enable;
in
{
options.boot.plymouth.catppuccin = ctp.mkCatppuccinOpt "plymouth";
config.boot.plymouth = mkIf enable {
theme = "catppuccin-${cfg.flavour}";
themePackages = [
(pkgs.catppuccin-plymouth.override {
variant = cfg.flavour;
})
];
};
}

View file

@ -29,7 +29,10 @@ testers.runNixOSTest {
common
];
boot.loader.grub = enable;
boot = {
loader.grub = enable;
plymouth = enable;
};
services = {
displayManager.sddm = enable;