Compare commits
1 Commits
eu-edition
...
school-edi
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8e3c2c64ee |
@@ -1,3 +1,3 @@
|
||||
# deskOS - EU Edition
|
||||
# deskOS - School Edition
|
||||
|
||||
deskOS is based on [Linux](https://en.wikipedia.org/wiki/Linux) and [NixOS](https://nixos.org/).
|
||||
|
||||
|
Before Width: | Height: | Size: 238 KiB |
BIN
assets/school-wallpaper.jpg
Normal file
|
After Width: | Height: | Size: 82 KiB |
@@ -20,9 +20,8 @@
|
||||
|
||||
# Localization
|
||||
time.timeZone = "Europe/Brussels";
|
||||
i18n.defaultLocale = "en_US.UTF-8";
|
||||
services.xserver.xkb.layout = "us";
|
||||
services.xserver.xkb.variant = "dvorak";
|
||||
i18n.defaultLocale = "nl_NL.UTF-8";
|
||||
services.xserver.xkb.layout = "nl";
|
||||
|
||||
services.displayManager.autoLogin = {
|
||||
enable = true;
|
||||
|
||||
@@ -20,12 +20,12 @@
|
||||
loader.efi.canTouchEfiVariables = true;
|
||||
plymouth = {
|
||||
enable = true;
|
||||
theme = "eu-flag";
|
||||
themePackages = [ (pkgs.callPackage ../../packages/eu-flag-plymouth {}) ];
|
||||
theme = "lightbulb";
|
||||
themePackages = [ (pkgs.callPackage ../../packages/lightbulb-plymouth {}) ];
|
||||
};
|
||||
};
|
||||
|
||||
system.nixos.distroName = "deskOS 1 - EU Edition";
|
||||
system.nixos.distroName = "deskOS 1 - School Edition";
|
||||
|
||||
system.autoUpgrade = {
|
||||
enable = true;
|
||||
@@ -76,8 +76,8 @@
|
||||
{
|
||||
settings = {
|
||||
"org/gnome/desktop/background" = {
|
||||
picture-uri = "file://${../../assets/eu-wallpaper.jpg}";
|
||||
picture-uri-dark = "file://${../../assets/eu-wallpaper.jpg}";
|
||||
picture-uri = "file://${../../assets/school-wallpaper.jpg}";
|
||||
picture-uri-dark = "file://${../../assets/school-wallpaper.jpg}";
|
||||
};
|
||||
|
||||
"org/gnome/desktop/wm/preferences" = {
|
||||
@@ -85,7 +85,7 @@
|
||||
};
|
||||
|
||||
"org/gnome/desktop/screensaver" = {
|
||||
picture-uri = "file://${../../assets/eu-wallpaper.jpg}";
|
||||
picture-uri = "file://${../../assets/school-wallpaper.jpg}";
|
||||
};
|
||||
|
||||
"org/gnome/desktop/interface" = {
|
||||
@@ -171,12 +171,12 @@
|
||||
menu-layout = "Windows";
|
||||
pinned-apps = lib.gvariant.mkArray [
|
||||
[(lib.gvariant.mkDictionaryEntry "id" "firefox.desktop")]
|
||||
[(lib.gvariant.mkDictionaryEntry "id" "org.gnome.Geary.desktop")]
|
||||
[(lib.gvariant.mkDictionaryEntry "id" "org.gnome.Calendar.desktop")]
|
||||
[(lib.gvariant.mkDictionaryEntry "id" "org.gnome.Nautilus.desktop")]
|
||||
[(lib.gvariant.mkDictionaryEntry "id" "writer.desktop")]
|
||||
[(lib.gvariant.mkDictionaryEntry "id" "calc.desktop")]
|
||||
[(lib.gvariant.mkDictionaryEntry "id" "impress.desktop")]
|
||||
[(lib.gvariant.mkDictionaryEntry "id" "org.kde.krita.desktop")]
|
||||
[(lib.gvariant.mkDictionaryEntry "id" "supertuxkart.desktop")]
|
||||
[(lib.gvariant.mkDictionaryEntry "id" "org.gnome.Software.desktop")]
|
||||
];
|
||||
};
|
||||
@@ -212,7 +212,9 @@
|
||||
gnomeExtensions.just-perfection
|
||||
gnomeExtensions.printers
|
||||
gnomeExtensions.removable-drive-menu
|
||||
krita
|
||||
libreoffice
|
||||
superTuxKart
|
||||
];
|
||||
|
||||
environment.gnome.excludePackages = with pkgs; [
|
||||
|
||||
@@ -30,7 +30,7 @@ in {
|
||||
(modulesPath + "/profiles/installation-device.nix")
|
||||
];
|
||||
|
||||
system.nixos.distroName = "deskOS 1 - EU Edition";
|
||||
system.nixos.distroName = "deskOS 1 - School Edition";
|
||||
|
||||
# FIXME(m): Disable squashfs compression during development
|
||||
# isoImage.squashfsCompression = null;
|
||||
@@ -43,8 +43,8 @@ in {
|
||||
loader.timeout = lib.mkForce 0;
|
||||
plymouth = {
|
||||
enable = true;
|
||||
theme = "eu-flag-installer";
|
||||
themePackages = [ (pkgs.callPackage ../../packages/eu-flag-installer-plymouth {}) ];
|
||||
theme = "lightbulb-installer";
|
||||
themePackages = [ (pkgs.callPackage ../../packages/lightbulb-installer-plymouth {}) ];
|
||||
};
|
||||
# NOTE(m): Enable kernel modules that improve wifi support on
|
||||
# Macbooks during installation.
|
||||
@@ -125,7 +125,7 @@ in {
|
||||
gnomeExtensions.no-overview
|
||||
];
|
||||
|
||||
i18n.defaultLocale = "en_GB.UTF-8";
|
||||
i18n.defaultLocale = "nl_NL.UTF-8";
|
||||
|
||||
# Support choosing from any locale
|
||||
i18n.supportedLocales = ["all"];
|
||||
@@ -149,9 +149,9 @@ in {
|
||||
sleep-inactive-ac-type='nothing'
|
||||
sleep-inactive-battery-type='nothing'
|
||||
[org.gnome.desktop.background]
|
||||
picture-uri='file://${../../assets/eu-wallpaper.jpg}'
|
||||
picture-uri='file://${../../assets/school-wallpaper.jpg}'
|
||||
[org.gnome.desktop.screensaver]
|
||||
picture-uri='file://${../../assets/eu-wallpaper.jpg}'
|
||||
picture-uri='file://${../../assets/school-wallpaper.jpg}'
|
||||
'';
|
||||
|
||||
extraGSettingsOverridePackages = [pkgs.gnome.gnome-settings-daemon];
|
||||
|
||||
@@ -9,21 +9,21 @@ windowExpanding: fullscreen
|
||||
windowPlacement: center
|
||||
sidebar: none
|
||||
strings:
|
||||
productName: deskOS - EU Edition
|
||||
shortProductName: deskOS - EU Edition
|
||||
productName: deskOS - School Edition
|
||||
shortProductName: deskOS - School Edition
|
||||
version: 1
|
||||
shortVersion: 1
|
||||
versionedName: deskOS 1 - EU Edition
|
||||
shortVersionedName: deskOS 1 - EU Edition
|
||||
bootloaderEntryName: deskOS - EU Edition
|
||||
productUrl: https://www.edps.europa.eu/
|
||||
supportUrl: https://www.edps.europa.eu/
|
||||
knownIssuesUrl: https://github.com/EU-EDPS
|
||||
releaseNotesUrl: https://www.edps.europa.eu/
|
||||
donateUrl: https://www.edps.europa.eu/
|
||||
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-eu.png"
|
||||
productLogo: "desk-os-logo-eu.png"
|
||||
productIcon: "desk-os-logo-school.png"
|
||||
productLogo: "desk-os-logo-school.png"
|
||||
style:
|
||||
SidebarBackground: "#292F34"
|
||||
SidebarText: "#FFFFFF"
|
||||
|
||||
|
Before Width: | Height: | Size: 395 KiB |
|
After Width: | Height: | Size: 180 KiB |
@@ -8,7 +8,6 @@ efi:
|
||||
label: "EFI"
|
||||
userSwapChoices:
|
||||
- suspend
|
||||
luksGeneration: luks2
|
||||
drawNestedPartitions: false
|
||||
alwaysShowPartitionLabels: true
|
||||
allowManualPartitioning: false
|
||||
@@ -27,9 +26,5 @@ initialSwapChoice: suspend
|
||||
requiredPartitionTableType: gpt
|
||||
partitionLayout:
|
||||
- filesystem: "ext4"
|
||||
noEncrypt: false
|
||||
mountPoint: "/"
|
||||
size: 100%
|
||||
enableLuksAutomatedPartitioning: true
|
||||
# FIXME(m): This does not seem to work
|
||||
preCheckEncryption: true
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
defaultGroups:
|
||||
- users
|
||||
- networkmanager
|
||||
setRootPassword: true
|
||||
doAutologin: false
|
||||
setRootPassword: false
|
||||
doAutologin: true
|
||||
user:
|
||||
shell: /run/current-system/sw/bin/bash
|
||||
forbidden_names: [ root ]
|
||||
|
||||
@@ -8,7 +8,7 @@ showReleaseNotesUrl: false
|
||||
requirements:
|
||||
requiredStorage: 60
|
||||
requiredRam: 4.0
|
||||
internetCheckUrl: [ https://www.edps.europa.eu, https://cache.nixos.org/ ]
|
||||
internetCheckUrl: [ https://nixup.io, https://cache.nixos.org/ ]
|
||||
check:
|
||||
- storage
|
||||
- ram
|
||||
|
||||
@@ -56,7 +56,7 @@ flake = f"""
|
||||
inputs = {{
|
||||
nixpkgs.url = "github:nixup-io/nixpkgs-desk-os/stable";
|
||||
desk-os = {{
|
||||
url = "github:nixup-io/desk-os/eu-edition";
|
||||
url = "github:nixup-io/desk-os/school-edition";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
}};
|
||||
}};
|
||||
@@ -114,6 +114,11 @@ configuration_body = """
|
||||
extraGroups = [ @@groups@@ ];
|
||||
};
|
||||
|
||||
services.displayManager.autoLogin = {
|
||||
enable = true;
|
||||
user = "@@username@@";
|
||||
};
|
||||
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
"""
|
||||
|
||||
@@ -163,7 +168,7 @@ configuration_tail = """
|
||||
"""
|
||||
|
||||
def pretty_name():
|
||||
return _("Installing deskOS - EU Edition (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()
|
||||
@@ -290,7 +295,7 @@ def run():
|
||||
libcalamares.utils.host_env_process_output(
|
||||
["cp", "/dev/stdin", flakeFile], None, flake)
|
||||
|
||||
status = _("Installing deskOS - EU Edition (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:
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
{stdenv}:
|
||||
stdenv.mkDerivation {
|
||||
pname = "eu-flag-installer-plymouth";
|
||||
version = "0.0.1";
|
||||
|
||||
src = ./src;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
sed -i 's:\(^ImageDir=\)/usr:\1'"$out"':' eu-flag-installer.plymouth
|
||||
sed -i 's:\(^ScriptFile=\)/usr:\1'"$out"':' eu-flag-installer.plymouth
|
||||
mkdir -p $out/share/plymouth/themes/eu-flag-installer
|
||||
cp * $out/share/plymouth/themes/eu-flag-installer
|
||||
runHook postInstall
|
||||
'';
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
[Plymouth Theme]
|
||||
Name=EU flag Installer
|
||||
Description=A theme that displays the EU flag Installer logo
|
||||
ModuleName=script
|
||||
|
||||
[script]
|
||||
ImageDir=/usr/share/plymouth/themes/eu-flag-installer
|
||||
ScriptFile=/usr/share/plymouth/themes/eu-flag-installer/eu-flag-installer.script
|
||||
|
Before Width: | Height: | Size: 36 KiB |
@@ -1,16 +0,0 @@
|
||||
{stdenv}:
|
||||
stdenv.mkDerivation {
|
||||
pname = "eu-flag-plymouth";
|
||||
version = "0.0.1";
|
||||
|
||||
src = ./src;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
sed -i 's:\(^ImageDir=\)/usr:\1'"$out"':' eu-flag.plymouth
|
||||
sed -i 's:\(^ScriptFile=\)/usr:\1'"$out"':' eu-flag.plymouth
|
||||
mkdir -p $out/share/plymouth/themes/eu-flag
|
||||
cp * $out/share/plymouth/themes/eu-flag
|
||||
runHook postInstall
|
||||
'';
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
[Plymouth Theme]
|
||||
Name=EU flag
|
||||
Description=A theme that displays the EU flag
|
||||
ModuleName=script
|
||||
|
||||
[script]
|
||||
ImageDir=/usr/share/plymouth/themes/eu-flag
|
||||
ScriptFile=/usr/share/plymouth/themes/eu-flag/eu-flag.script
|
||||
|
Before Width: | Height: | Size: 34 KiB |
16
packages/lightbulb-installer-plymouth/default.nix
Normal 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
|
||||
'';
|
||||
}
|
||||
@@ -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
|
||||
|
After Width: | Height: | Size: 22 KiB |
@@ -1,4 +1,4 @@
|
||||
image = Image("eu-flag-installer.png");
|
||||
image = Image("lightbulb-installer.png");
|
||||
|
||||
pos_x = Window.GetWidth()/2 - image.GetWidth()/2;
|
||||
pos_y = Window.GetHeight()/2 - image.GetHeight()/2;
|
||||
16
packages/lightbulb-plymouth/default.nix
Normal 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
|
||||
'';
|
||||
}
|
||||
8
packages/lightbulb-plymouth/src/lightbulb.plymouth
Normal 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
|
||||
BIN
packages/lightbulb-plymouth/src/lightbulb.png
Normal file
|
After Width: | Height: | Size: 21 KiB |
@@ -1,4 +1,4 @@
|
||||
image = Image("eu-flag.png");
|
||||
image = Image("lightbulb.png");
|
||||
|
||||
pos_x = Window.GetWidth()/2 - image.GetWidth()/2;
|
||||
pos_y = Window.GetHeight()/2 - image.GetHeight()/2;
|
||||