-
-
Notifications
You must be signed in to change notification settings - Fork 13.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tuxedo-keyboard: rename config option and package to tuxedo-driver
- Loading branch information
1 parent
815ea20
commit 19cd864
Showing
6 changed files
with
44 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ config, lib, ... }: | ||
let | ||
cfg = config.hardware.tuxedo-driver; | ||
tuxedo-driver = config.boot.kernelPackages.tuxedo-driver; | ||
in { | ||
imports = [ | ||
(lib.mkRenamedOptionModule [ "hardware" "tuxedo-keyboard" ] [ | ||
"hardware" | ||
"tuxedo-driver" | ||
]) | ||
]; | ||
|
||
options.hardware.tuxedo-driver = { | ||
enable = lib.mkEnableOption '' | ||
The tuxedo-driver driver enables access to the following on TUXEDO notebooks: | ||
- Driver for Fn-keys | ||
- SysFS control of brightness/color/mode for most TUXEDO keyboards | ||
- Hardware I/O driver for TUXEDO Control Center | ||
For more inforation it is best to check at the source code description: <https://gitlab.com/tuxedocomputers/development/packages/tuxedo-drivers> | ||
''; | ||
}; | ||
|
||
config = lib.mkIf cfg.enable { | ||
boot.kernelModules = [ "tuxedo_keyboard" ]; | ||
boot.extraModulePackages = [ tuxedo-driver ]; | ||
}; | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters