From d3cd9a2229c0b699eab4922c081be4607f134cd1 Mon Sep 17 00:00:00 2001 From: Winter Date: Tue, 2 Feb 2021 19:13:14 -0500 Subject: [PATCH 1/3] microsoft-surface: add surface-control --- microsoft/surface/README.md | 6 +++++- microsoft/surface/default.nix | 13 ++++++------- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/microsoft/surface/README.md b/microsoft/surface/README.md index d67a91e..7ee0e72 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 7a49d08..0a532c8 100644 --- a/microsoft/surface/default.nix +++ b/microsoft/surface/default.nix @@ -1,8 +1,7 @@ -{ config, lib, pkgs, ... }: -{ - imports = [ - ./kernel - ./firmware - ./hardware_configuration.nix - ]; +{ config, lib, pkgs, ... }: { + imports = [ ./kernel ./firmware ./hardware_configuration.nix ]; + + environment.systemPackages = with pkgs; [ surface-control ]; + users.groups.surface-control = {}; + services.udev.packages = [ pkgs.surface-control ]; } From bf19677a5f377b5306cff1429b04d0023b80dd3d Mon Sep 17 00:00:00 2001 From: Winter Date: Wed, 17 Mar 2021 15:46:55 -0400 Subject: [PATCH 2/3] nixfmt --- microsoft/surface/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/microsoft/surface/default.nix b/microsoft/surface/default.nix index 0a532c8..cc4afea 100644 --- a/microsoft/surface/default.nix +++ b/microsoft/surface/default.nix @@ -2,6 +2,6 @@ imports = [ ./kernel ./firmware ./hardware_configuration.nix ]; environment.systemPackages = with pkgs; [ surface-control ]; - users.groups.surface-control = {}; + users.groups.surface-control = { }; services.udev.packages = [ pkgs.surface-control ]; } From 6075b4d856ea5c8564c660ada51b49aeb98c3423 Mon Sep 17 00:00:00 2001 From: Winter Date: Mon, 22 Mar 2021 16:48:20 -0400 Subject: [PATCH 3/3] fix import --- microsoft/surface/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/microsoft/surface/default.nix b/microsoft/surface/default.nix index cc4afea..955c6d2 100644 --- a/microsoft/surface/default.nix +++ b/microsoft/surface/default.nix @@ -1,5 +1,6 @@ { config, lib, pkgs, ... }: { - imports = [ ./kernel ./firmware ./hardware_configuration.nix ]; + imports = + [ ./kernel ./hardware_configuration.nix ./firmware/surface-go/ath10k ]; environment.systemPackages = with pkgs; [ surface-control ]; users.groups.surface-control = { };