From cedce7fb7c293d5a961fd1f6937cea3e06bc257c Mon Sep 17 00:00:00 2001 From: UGA Innovation Factory Date: Mon, 8 Dec 2025 19:36:58 +0000 Subject: [PATCH] try to make camera work --- hosts/nix-surface.nix | 2 ++ sw-kiosk.nix | 30 +++++------------------------- 2 files changed, 7 insertions(+), 25 deletions(-) diff --git a/hosts/nix-surface.nix b/hosts/nix-surface.nix index 88c80a8..ea460d0 100644 --- a/hosts/nix-surface.nix +++ b/hosts/nix-surface.nix @@ -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; diff --git a/sw-kiosk.nix b/sw-kiosk.nix index 86c93fd..01014ad 100644 --- a/sw-kiosk.nix +++ b/sw-kiosk.nix @@ -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" ]; @@ -159,6 +142,7 @@ alsa.enable = true; alsa.support32Bit = true; pulse.enable = true; + wireplumber.enable = true; }; # Allow unfree packages @@ -168,6 +152,8 @@ environment.systemPackages = with pkgs; [ htop binutils + libcamera + libcamera-tools (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;