From c242672eedc450bc5064da388bff0dc787afd405 Mon Sep 17 00:00:00 2001 From: Aleksandr Lebedev Date: Tue, 23 Sep 2025 18:30:48 +0200 Subject: [PATCH] Zhu --- flake.lock | 6 +++--- homes/x86_64-linux/kylekrein/niri/niri.nix | 4 ++-- modules/nixos/hardware/framework12/default.nix | 11 +++++++++++ 3 files changed, 16 insertions(+), 5 deletions(-) diff --git a/flake.lock b/flake.lock index 8123b57..7bcaffa 100644 --- a/flake.lock +++ b/flake.lock @@ -463,11 +463,11 @@ "snowfall-lib": "snowfall-lib" }, "locked": { - "lastModified": 1758626934, - "narHash": "sha256-3LWlTa/5SRT7E4sUaXRF7yREWl+Jvs/dkDzsmJKcTug=", + "lastModified": 1758627139, + "narHash": "sha256-fBPt3BQ61hkdOBNFRKfl5ggSlKxnTRph501neZKVRAg=", "owner": "kylekrein", "repo": "emacs-config", - "rev": "20d2be3fa2641577859670389d3c4acccb656a61", + "rev": "a4d1f183f2254ff83410c9816f4b316624e96398", "type": "github" }, "original": { diff --git a/homes/x86_64-linux/kylekrein/niri/niri.nix b/homes/x86_64-linux/kylekrein/niri/niri.nix index 9d78ad9..1d623a5 100644 --- a/homes/x86_64-linux/kylekrein/niri/niri.nix +++ b/homes/x86_64-linux/kylekrein/niri/niri.nix @@ -51,7 +51,7 @@ in ]; layout = { preset-column-widths = [ - {proportion = 1.0 / 2.0;} + {proportion = 1.0 / 2.0;} {proportion = 1.0;} {proportion = 2.0 / 3.0;} {proportion = 1.0 / 3.0;} @@ -72,7 +72,7 @@ in "Mod+F".action = fullscreen-window; "Mod+R".action = switch-preset-column-width; "Mod+Q".action = close-window; - "Mod+P".action = sh ''emacsclient -cF "((visibility . nil))" -e "(emacs-run-password-copy-field)"''; + "Mod+P".action = sh ''emacsclient -cF "((visibility . nil))" -e "(emacs-run-password-copy-field)"''; "Mod+Shift+S".action = screenshot-annotate; "Mod+1".action = focus-workspace 1; "Mod+2".action = focus-workspace 2; diff --git a/modules/nixos/hardware/framework12/default.nix b/modules/nixos/hardware/framework12/default.nix index 9de3081..9967b5e 100644 --- a/modules/nixos/hardware/framework12/default.nix +++ b/modules/nixos/hardware/framework12/default.nix @@ -69,6 +69,17 @@ in { ]; } ]; + services.xserver.videoDrivers = ["modesetting"]; + hardware.graphics = { + enable = true; + extraPackages = with pkgs; [ + # For modern Intel CPU's + intel-media-driver # Enable Hardware Acceleration + vpl-gpu-rt # Enable QSV + ]; + }; + environment.sessionVariables = {LIBVA_DRIVER_NAME = "iHD";}; + users.groups.touchscreen = {}; services.udev.extraRules = '' KERNEL=="event*", ATTRS{name}=="ILIT2901:00 222A:5539", SYMLINK+="touchscreen", MODE="0660", GROUP="touchscreen"