mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-12 05:16:25 +03:00
nixos/hardware.wooting: remove with lib;
This commit is contained in:
parent
bbe907f0a9
commit
d0bcf277bf
1 changed files with 2 additions and 4 deletions
|
@ -1,11 +1,9 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
{
|
{
|
||||||
options.hardware.wooting.enable = mkEnableOption ''support for Wooting keyboards.
|
options.hardware.wooting.enable = lib.mkEnableOption ''support for Wooting keyboards.
|
||||||
Note that users must be in the "input" group for udev rules to apply'';
|
Note that users must be in the "input" group for udev rules to apply'';
|
||||||
|
|
||||||
config = mkIf config.hardware.wooting.enable {
|
config = lib.mkIf config.hardware.wooting.enable {
|
||||||
environment.systemPackages = [ pkgs.wootility ];
|
environment.systemPackages = [ pkgs.wootility ];
|
||||||
services.udev.packages = [ pkgs.wooting-udev-rules ];
|
services.udev.packages = [ pkgs.wooting-udev-rules ];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue