nixos/hardware.steam-hardware: remove with lib;

This commit is contained in:
Felix Buehler 2024-08-24 22:05:30 +02:00
parent 024f4f89ae
commit 12a3b2f7af

View File

@ -1,7 +1,4 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
with lib;
let let
cfg = config.hardware.steam-hardware; cfg = config.hardware.steam-hardware;
@ -10,14 +7,14 @@ in
{ {
options.hardware.steam-hardware = { options.hardware.steam-hardware = {
enable = mkOption { enable = lib.mkOption {
type = types.bool; type = lib.types.bool;
default = false; default = false;
description = "Enable udev rules for Steam hardware such as the Steam Controller, other supported controllers and the HTC Vive"; description = "Enable udev rules for Steam hardware such as the Steam Controller, other supported controllers and the HTC Vive";
}; };
}; };
config = mkIf cfg.enable { config = lib.mkIf cfg.enable {
services.udev.packages = [ services.udev.packages = [
pkgs.steamPackages.steam pkgs.steamPackages.steam
]; ];