This commit is contained in:
TheWanderingCrow 2024-12-30 10:12:47 -05:00
parent 1a54469534
commit ade535a252

View file

@ -4,30 +4,27 @@
pkgs, pkgs,
... ...
}: let }: let
basic = { rices = {
theme = "breeze"; basic = {
logo = "${pkgs.nixos-icons}/share/icons/hicolor/48x48/apps/nix-snowflake-white.png"; theme = "deus_ex";
font = "${pkgs.dejavu_fonts.minimal}/share/fonts/truetype/DejaVuSans.ttf"; logo = null;
extraConfig = ""; font = null;
extraConfig = "";
};
}; };
rice = let
enabledSet = lib.filter (set: config.ricing.${set}.enable) (lib.attrNames rices) // [null];
in
if enabledSet != [null]
then rices.${enabledSet.head}
else null;
in { in {
boot.plymouth = { boot.plymouth = {
enable = true; enable = true;
theme = theme = rice.theme;
if config.ricing.basic.enable logo = rice.logo;
then basic.theme font = rice.font;
else null; extraConfig = rice.extraConfig;
logo =
if config.ricing.basic.enable
then basic.logo
else null;
font =
if config.ricing.basic.enable
then basic.font
else null;
extraConfig =
if config.ricing.basic.enable
then basic.extraConfig
else null;
}; };
} }