feat(nixos): add support for plymouth (#166)
Co-authored-by: seth <getchoo@tuta.io>
This commit is contained in:
parent
e77424fd33
commit
9ffc6b8c26
2 changed files with 26 additions and 1 deletions
22
modules/nixos/plymouth.nix
Normal file
22
modules/nixos/plymouth.nix
Normal 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;
|
||||
})
|
||||
];
|
||||
};
|
||||
}
|
5
test.nix
5
test.nix
|
@ -29,7 +29,10 @@ testers.runNixOSTest {
|
|||
common
|
||||
];
|
||||
|
||||
boot.loader.grub = enable;
|
||||
boot = {
|
||||
loader.grub = enable;
|
||||
plymouth = enable;
|
||||
};
|
||||
|
||||
services = {
|
||||
displayManager.sddm = enable;
|
||||
|
|
Loading…
Reference in a new issue