Apply customization for School Edition

This commit is contained in:
Michael Smith
2024-09-11 10:39:48 +02:00
parent c08e57de0d
commit 8e3c2c64ee
17 changed files with 95 additions and 47 deletions

View File

@@ -9,21 +9,21 @@ windowExpanding: fullscreen
windowPlacement: center
sidebar: none
strings:
productName: deskOS
shortProductName: deskOS
productName: deskOS - School Edition
shortProductName: deskOS - School Edition
version: 1
shortVersion: 1
versionedName: deskOS 1
shortVersionedName: deskOS 1
bootloaderEntryName: deskOS
versionedName: deskOS 1 - School Edition
shortVersionedName: deskOS 1 - School Edition
bootloaderEntryName: deskOS - School Edition
productUrl: https://nixup.io
supportUrl: https://nixup.io
knownIssuesUrl: https://github.com/nixup-io/desk-os/issues
releaseNotesUrl: https://nixup.io
donateUrl: https://nixup.io
images:
productIcon: "desk-os-logo.png"
productLogo: "desk-os-logo.png"
productIcon: "desk-os-logo-school.png"
productLogo: "desk-os-logo-school.png"
style:
SidebarBackground: "#292F34"
SidebarText: "#FFFFFF"

Binary file not shown.

After

Width:  |  Height:  |  Size: 180 KiB

View File

@@ -5,7 +5,6 @@
defaultGroups:
- users
- networkmanager
- wheel
setRootPassword: false
doAutologin: true
user:

View File

@@ -56,7 +56,7 @@ flake = f"""
inputs = {{
nixpkgs.url = "github:nixup-io/nixpkgs-desk-os/stable";
desk-os = {{
url = "github:nixup-io/desk-os";
url = "github:nixup-io/desk-os/school-edition";
inputs.nixpkgs.follows = "nixpkgs";
}};
}};
@@ -168,7 +168,7 @@ configuration_tail = """
"""
def pretty_name():
return _("Installing deskOS (this can take a while depending on your Internet speed)...")
return _("Installing deskOS - School Edition (this can take a while depending on your Internet speed)...")
status = pretty_name()
@@ -243,7 +243,7 @@ def run():
if (gs.value("username") is not None):
fullname = gs.value("fullname")
groups = ["networkmanager", "wheel"]
groups = ["networkmanager"]
catenate(variables, "username", gs.value("username"))
catenate(variables, "fullname", fullname)
@@ -295,7 +295,7 @@ def run():
libcalamares.utils.host_env_process_output(
["cp", "/dev/stdin", flakeFile], None, flake)
status = _("Installing deskOS (this can take a while depending on your Internet speed)...")
status = _("Installing deskOS - School Edition (this can take a while depending on your Internet speed)...")
# Install
try:

View File

@@ -0,0 +1,16 @@
{stdenv}:
stdenv.mkDerivation {
pname = "lightbulb-installer-plymouth";
version = "0.0.1";
src = ./src;
installPhase = ''
runHook preInstall
sed -i 's:\(^ImageDir=\)/usr:\1'"$out"':' lightbulb-installer.plymouth
sed -i 's:\(^ScriptFile=\)/usr:\1'"$out"':' lightbulb-installer.plymouth
mkdir -p $out/share/plymouth/themes/lightbulb-installer
cp * $out/share/plymouth/themes/lightbulb-installer
runHook postInstall
'';
}

View File

@@ -0,0 +1,8 @@
[Plymouth Theme]
Name=Lightbulb Installer
Description=A theme that displays the Lightbulb Installer logo
ModuleName=script
[script]
ImageDir=/usr/share/plymouth/themes/lightbulb-installer
ScriptFile=/usr/share/plymouth/themes/lightbulb-installer/lightbulb-installer.script

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

View File

@@ -0,0 +1,8 @@
image = Image("lightbulb-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);

View File

@@ -0,0 +1,16 @@
{stdenv}:
stdenv.mkDerivation {
pname = "lightbulb-plymouth";
version = "0.0.1";
src = ./src;
installPhase = ''
runHook preInstall
sed -i 's:\(^ImageDir=\)/usr:\1'"$out"':' lightbulb.plymouth
sed -i 's:\(^ScriptFile=\)/usr:\1'"$out"':' lightbulb.plymouth
mkdir -p $out/share/plymouth/themes/lightbulb
cp * $out/share/plymouth/themes/lightbulb
runHook postInstall
'';
}

View File

@@ -0,0 +1,8 @@
[Plymouth Theme]
Name=Lightbulb
Description=A theme that displays the Lightbulb
ModuleName=script
[script]
ImageDir=/usr/share/plymouth/themes/lightbulb
ScriptFile=/usr/share/plymouth/themes/lightbulb/lightbulb.script

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

View File

@@ -0,0 +1,8 @@
image = Image("lightbulb.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);