diff --git a/microsoft/surface/README.md b/microsoft/surface/README.md index c4fe226..458120f 100644 --- a/microsoft/surface/README.md +++ b/microsoft/surface/README.md @@ -42,7 +42,11 @@ kernel-space driver into events for the HID / input sub-system. ### DTX, `surface-control` -*TODO* +#### surface-control + +For controlling the performance modes and other aspects of the device, the [`surface-control`](https://github.com/linux-surface/surface-control) tool is included. + +To be able to control the performance mode without using `sudo`, add your user to the `surface-control` group. # ToDo's Not Done diff --git a/microsoft/surface/default.nix b/microsoft/surface/default.nix index 05d78de..955c6d2 100644 --- a/microsoft/surface/default.nix +++ b/microsoft/surface/default.nix @@ -1,8 +1,8 @@ -{ config, lib, pkgs, ... }: -{ - imports = [ - ./kernel - ./hardware_configuration.nix - ./firmware/surface-go/ath10k - ]; +{ config, lib, pkgs, ... }: { + imports = + [ ./kernel ./hardware_configuration.nix ./firmware/surface-go/ath10k ]; + + environment.systemPackages = with pkgs; [ surface-control ]; + users.groups.surface-control = { }; + services.udev.packages = [ pkgs.surface-control ]; }