mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-02-27 06:32:35 -05:00
plymouth
This commit is contained in:
parent
1a54469534
commit
ade535a252
1 changed files with 18 additions and 21 deletions
|
|
@ -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;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue