feat: Use Phosh desktopmanager for tablet environments

This commit is contained in:
UGA Innovation Factory
2025-12-05 22:03:27 +00:00
committed by Hunter Halloran
parent e97fd17f2a
commit 9595101c91

View File

@@ -2,7 +2,7 @@
{
services.cage = {
enable = true;
enable = false;
user = "engr-ugaif";
program = "${(pkgs.writeShellScriptBin "chromium-kiosk" ''
sleep 5
@@ -10,6 +10,33 @@
'')}/bin/chromium-kiosk";
};
services.xserver.desktopManager.phosh = {
enable = true;
user = "engr-ugaif";
group = "users";
};
environment.etc."xdg/autostart/kiosk-chromium.desktop".text = ''
[Desktop Entry]
Type=Application
Name=Factory Kiosk
Exec=${pkgs.chromium}/bin/chromium \
--enable-features=UseOzonePlatform \
--ozone-platform=wayland \
--kiosk \
--start-fullscreen \
--noerrdialogs \
--disable-session-crashed-bubble \
https://ha.factory.uga.edu
X-GNOME-Autostart-enabled=true
X-GNOME-Autostart-Phase=Applications
'';
environment.sessionVariables = {
GDK_SCALE = "2";
GDK_DPI_SCALE = "0.5";
};
# Enable networking
networking.networkmanager.enable = false;
networking.wireless = {
@@ -48,13 +75,14 @@
zsh
git
dbus
squeekboard
inputs.lazyvim-nixvim.packages.${stdenv.hostPlatform.system}.nvim
];
programs.chromium = {
enable = true;
extensions = [
"ecjkcanpimnagobhegghdeeiagffoidk" # Chrome Virtual Keyboard
# "ecjkcanpimnagobhegghdeeiagffoidk" # Chrome Virtual Keyboard
];
};