mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-02-13 16:18:57 -05:00
ricing
This commit is contained in:
parent
58dea90ea9
commit
663aeffed8
9 changed files with 92 additions and 37 deletions
5
modules/ricing/default.nix
Normal file
5
modules/ricing/default.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
imports = [
|
||||
./plymouth.nix
|
||||
];
|
||||
}
|
||||
32
modules/ricing/plymouth.nix
Normal file
32
modules/ricing/plymouth.nix
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
basic = {
|
||||
theme = "breeze";
|
||||
logo = "${pkgs.nixos-icons}/share/icons/hicolor/48x48/apps/nix-snowflake-white.png";
|
||||
font = "${pkgs.dejavu_fonts.minimal}/share/fonts/truetype/DejaVuSans.ttf";
|
||||
extraConfig = "";
|
||||
};
|
||||
in {
|
||||
boot.plymouth = {
|
||||
theme =
|
||||
if config.ricing.basic.enable
|
||||
then basic.theme
|
||||
else null;
|
||||
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