mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-01-27 00:44:16 -05:00
30 lines
503 B
Nix
30 lines
503 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}: let
|
|
rices = {
|
|
basic = {
|
|
theme = "deus_ex";
|
|
logo = null;
|
|
font = null;
|
|
extraConfig = "";
|
|
};
|
|
};
|
|
|
|
rice = let
|
|
enabledSet = lib.filter (set: config.ricing.${set}.enable) (lib.attrNames rices) // [null];
|
|
in
|
|
if enabledSet != [null]
|
|
then enabledSet.head
|
|
else null;
|
|
in {
|
|
boot.plymouth = {
|
|
enable = true;
|
|
theme = rice.theme;
|
|
logo = rice.logo;
|
|
font = rice.font;
|
|
extraConfig = rice.extraConfig;
|
|
};
|
|
}
|