use greetd
This commit is contained in:
41
sw-kiosk.nix
41
sw-kiosk.nix
@@ -6,25 +6,34 @@
|
|||||||
wrapperFeatures.gtk = true;
|
wrapperFeatures.gtk = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.services."kiosk-session" = {
|
# Login manager that starts sway on a real TTY
|
||||||
description = "Kiosk session";
|
services.greetd = {
|
||||||
serviceConfig = {
|
enable = true;
|
||||||
User = "engr-ugaif";
|
settings = {
|
||||||
Type = "simple";
|
default_session = {
|
||||||
Environment = [
|
user = "engr-ugaif";
|
||||||
"XDG_RUNTIME_DIR=/run/user/%u"
|
command = ''
|
||||||
"PATH=/run/current-system/sw/bin"
|
/run/current-system/sw/bin/sway --config /etc/sway-kiosk.conf
|
||||||
];
|
'';
|
||||||
ExecStart = ''
|
};
|
||||||
/run/current-system/sw/bin/sway --config /etc/sway-kiosk.conf
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
wantedBy = [ "multi-user.target" ];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Sway config for kiosk
|
||||||
environment.etc."sway-kiosk.conf".text = ''
|
environment.etc."sway-kiosk.conf".text = ''
|
||||||
exec chromium --kiosk https://ha.factory.uga.edu
|
# No fancy tiling, just a fullscreen kiosk
|
||||||
exec wvkbd-mobintl --output *
|
exec_always {
|
||||||
|
export LANG=en_US.UTF-8
|
||||||
|
export LC_ALL=en_US.UTF-8
|
||||||
|
exec ${pkgs.chromium}/bin/chromium \
|
||||||
|
--kiosk "https://ha.factory.uga.edu"
|
||||||
|
}
|
||||||
|
|
||||||
|
# On-screen keyboard (once you add wvkbd)
|
||||||
|
exec_always ${pkgs.wvkbd}/bin/wvkbd-mobintl
|
||||||
|
|
||||||
|
# Basic output config if needed
|
||||||
|
output * scale 1
|
||||||
'';
|
'';
|
||||||
|
|
||||||
services.dbus.enable = true;
|
services.dbus.enable = true;
|
||||||
@@ -84,7 +93,7 @@
|
|||||||
programs.chromium = {
|
programs.chromium = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extensions = [
|
extensions = [
|
||||||
"ofelldpjbfeheadojfhkagakafgghlji" # Chrome Virtual Keyboard
|
# "ofelldpjbfeheadojfhkagakafgghlji" # Chrome Virtual Keyboard
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user