This commit is contained in:
Aleksandr Lebedev 2025-09-11 13:22:57 +02:00
parent 55291038d1
commit 1983400da6
2 changed files with 18 additions and 0 deletions

View file

@ -53,6 +53,21 @@ in {
hardware.enableRedistributableFirmware = true;
environment.systemPackages = [
pkgs.framework-tool
(pkgs.writeShellScriptBin "reset-tablet" ''
sudo ${pkgs.framework-tool}/bin/framework_tool --tablet-mode tablet
sudo ${pkgs.framework-tool}/bin/framework_tool --tablet-mode auto
'')
];
security.sudo.extraRules = [
{
users = ["ALL"];
commands = [
{
command = "${pkgs.framework-tool}/bin/framework_tool";
options = ["NOPASSWD"];
}
];
}
];
users.groups.touchscreen = {};
services.udev.extraRules = ''