2023-05-19 09:36:17 +00:00
|
|
|
# doesn't actually *enable* anything,
|
|
|
|
# but sets up any modules such that if they *were* enabled, they'll act as expected.
|
|
|
|
{ ... }:
|
|
|
|
{
|
2023-05-19 10:18:26 +00:00
|
|
|
sane.gui.sxmo = {
|
|
|
|
greeter = "sway";
|
|
|
|
settings = {
|
|
|
|
# XXX: make sure the user is part of the `input` group!
|
|
|
|
SXMO_LISGD_INPUT_DEVICE = "/dev/input/by-id/usb-Wacom_Co._Ltd._Pen_and_multitouch_sensor-event-if00";
|
|
|
|
# these identifiers are from `swaymsg -t get_inputs`
|
|
|
|
SXMO_VOLUME_BUTTON = "1:1:AT_Translated_Set_2_keyboard";
|
|
|
|
# SXMO_VOLUME_BUTTON = "none";
|
|
|
|
SXMO_POWER_BUTTON = "0:1:Power_Button";
|
|
|
|
# SXMO_POWER_BUTTON = "none";
|
|
|
|
SXMO_DISABLE_LEDS = "1";
|
|
|
|
SXMO_UNLOCK_IDLE_TIME = "120"; # default
|
|
|
|
# sxmo tries to determine device type from /proc/device-tree/compatible,
|
|
|
|
# but that doesn't seem to exist on NixOS? (or maybe it just doesn't exist
|
|
|
|
# on non-aarch64 builds).
|
|
|
|
# the device type informs (at least):
|
|
|
|
# - SXMO_WIFI_MODULE
|
|
|
|
# - SXMO_RTW_SCAN_INTERVAL
|
|
|
|
# - SXMO_SYS_FILES
|
|
|
|
# - SXMO_TOUCHSCREEN_ID
|
|
|
|
# - SXMO_MONITOR
|
|
|
|
# - SXMO_ALSA_CONTROL_NAME
|
|
|
|
# - SXMO_SWAY_SCALE
|
|
|
|
# see <repo:mil/sxmo-utils:scripts/deviceprofiles>
|
|
|
|
# SXMO_DEVICE_NAME = "pine64,pinephone-1.2";
|
|
|
|
};
|
2023-05-19 09:36:17 +00:00
|
|
|
};
|
|
|
|
}
|