From 2ae4d0ef53e8c9ea893d58bfeb8a5e5ded9e276f Mon Sep 17 00:00:00 2001 From: UGA Innovation Factory Date: Fri, 5 Dec 2025 20:21:44 +0000 Subject: [PATCH] sway compositor instead of cage --- sw-kiosk.nix | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/sw-kiosk.nix b/sw-kiosk.nix index b36c4e0..5ec7384 100644 --- a/sw-kiosk.nix +++ b/sw-kiosk.nix @@ -1,8 +1,31 @@ { pkgs, inputs, ... }: { - services.cage = { + programs.sway = { enable = true; + wrapperFeatures.gtk = true; + }; + + systemd.services."kiosk-session" = { + description = "Kiosk session"; + serviceConfig = { + User = "engr-ugaif"; + Type = "simple"; + Environment = "XDG_RUNTIME_DIR=/run/user/%u"; + ExecStart = '' + ${pkgs.sway}/bin/sway --config /etc/sway-kiosk.conf + ''; + }; + wantedBy = [ "multi-user.target" ]; + }; + + environment.etc."sway-kiosk.conf".text = '' + exec chromium --kiosk https://ha.factory.uga.edu + exec wvkbd-mobintl --output * + ''; + + services.cage = { + enable = false; user = "engr-ugaif"; program = "${(pkgs.writeShellScriptBin "chromium-kiosk" '' sleep 5 @@ -47,6 +70,7 @@ oh-my-posh zsh git + wvkbd inputs.lazyvim-nixvim.packages.${stdenv.hostPlatform.system}.nvim ];