Update Plymouth logo for installer
This commit is contained in:
parent
105b6086e4
commit
6ddb8e01a5
@ -43,8 +43,8 @@ in {
|
|||||||
loader.timeout = lib.mkForce 0;
|
loader.timeout = lib.mkForce 0;
|
||||||
plymouth = {
|
plymouth = {
|
||||||
enable = true;
|
enable = true;
|
||||||
theme = "desk-os";
|
theme = "desk-os-installer";
|
||||||
themePackages = [(pkgs.callPackage ../../packages/desk-os-plymouth {})];
|
themePackages = [(pkgs.callPackage ../../packages/desk-os-installer-plymouth {})];
|
||||||
};
|
};
|
||||||
# NOTE(m): Enable kernel modules that improve wifi support on
|
# NOTE(m): Enable kernel modules that improve wifi support on
|
||||||
# Macbooks during installation.
|
# Macbooks during installation.
|
||||||
|
|||||||
16
packages/desk-os-installer-plymouth/default.nix
Normal file
16
packages/desk-os-installer-plymouth/default.nix
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
{stdenv}:
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
pname = "desk-os-installer-plymouth";
|
||||||
|
version = "0.0.1";
|
||||||
|
|
||||||
|
src = ./src;
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
sed -i 's:\(^ImageDir=\)/usr:\1'"$out"':' desk-os-installer.plymouth
|
||||||
|
sed -i 's:\(^ScriptFile=\)/usr:\1'"$out"':' desk-os-installer.plymouth
|
||||||
|
mkdir -p $out/share/plymouth/themes/desk-os-installer
|
||||||
|
cp * $out/share/plymouth/themes/desk-os-installer
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
}
|
||||||
@ -0,0 +1,8 @@
|
|||||||
|
[Plymouth Theme]
|
||||||
|
Name=deskOS Installer
|
||||||
|
Description=A theme that displays the deskOS installer logo
|
||||||
|
ModuleName=script
|
||||||
|
|
||||||
|
[script]
|
||||||
|
ImageDir=/usr/share/plymouth/themes/desk-os-installer
|
||||||
|
ScriptFile=/usr/share/plymouth/themes/desk-os-installer/desk-os-installer.script
|
||||||
BIN
packages/desk-os-installer-plymouth/src/desk-os-installer.png
Normal file
BIN
packages/desk-os-installer-plymouth/src/desk-os-installer.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.8 KiB |
@ -0,0 +1,8 @@
|
|||||||
|
image = Image("desk-os-installer.png");
|
||||||
|
|
||||||
|
pos_x = Window.GetWidth()/2 - image.GetWidth()/2;
|
||||||
|
pos_y = Window.GetHeight()/2 - image.GetHeight()/2;
|
||||||
|
|
||||||
|
sprite = Sprite(image);
|
||||||
|
sprite.SetX(pos_x);
|
||||||
|
sprite.SetY(pos_y);
|
||||||
Loading…
x
Reference in New Issue
Block a user