feat: Camera support for Surface tablets

This commit is contained in:
UGA Innovation Factory
2025-12-08 19:36:58 +00:00
committed by Hunter Halloran
parent 0b90280d9d
commit 13abaa8369
2 changed files with 8 additions and 26 deletions

View File

@@ -21,6 +21,8 @@ in
"boot.shell_on_fail"
"udev.log_priority=3"
"rd.systemd.show_status=auto"
"intel_ipu3_imgu"
"intel_ipu3_isys"
];
boot.kernelPackages = lib.mkForce refKernelPackages;

View File

@@ -56,7 +56,8 @@
};
i18n.inputMethod = {
enabled = "ibus";
type = "ibus";
enable = true;
ibus.engines = [ pkgs.ibus-engines.m17n ];
};
@@ -99,24 +100,6 @@
ENV{ID_INPUT_KEY}="", ENV{ID_INPUT_KEYBOARD}=""
'';
systemd.user.services."force-osk" = {
description = "Force-enable GNOME OSK after session init";
wantedBy = [ "graphical-session.target" ];
partOf = [ "graphical-session.target" ];
unitConfig = {
After = [ "gnome-session-initialized.target" "graphical-session.target" ];
};
serviceConfig = {
ExecStart = ''
${pkgs.glib.bin}/bin/gsettings set \
org.gnome.desktop.a11y.applications screen-keyboard-enabled true
'';
Type = "oneshot";
};
};
systemd.user.services."chromium-kiosk" = {
description = "Chromium kiosk";
wantedBy = [ "graphical-session.target" ];
@@ -124,8 +107,9 @@
serviceConfig = {
ExecStart = ''
dconf reset /org/gnome/desktop/a11y/applications/screen-keyboard-enabled
${pkgs.chromium}/bin/chromium \
--enable-features=UseOzonePlatform \
--enable-features=UseOzonePlatform,WebRTCLibcamera,TouchpadOverscrollHistoryNavigation \
--ozone-platform=wayland \
--kiosk \
--start-fullscreen \
@@ -159,6 +143,7 @@
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
wireplumber.enable = true;
};
# Allow unfree packages
@@ -168,6 +153,7 @@
environment.systemPackages = with pkgs; [
htop
binutils
libcamera
(chromium.override {
commandLineArgs = [ "--enable-features=TouchpadOverscrollHistoryNavigation" ];
})
@@ -179,17 +165,11 @@
dconf
phoc
gsettings-desktop-schemas
#(pkgs.writeShellScriptBin "osk-wayland" ''
# exec ${pkgs.squeekboard}/bin/squeekboard "$@"
#'')
inputs.lazyvim-nixvim.packages.${stdenv.hostPlatform.system}.nvim
];
programs.chromium = {
enable = true;
extensions = [
# "ecjkcanpimnagobhegghdeeiagffoidk" # Chrome Virtual Keyboard
];
};
programs.zsh.enable = true;