nixos/services.ratbagd: remove with lib;

This commit is contained in:
Felix Buehler 2024-08-27 20:43:22 +02:00
parent 439cb745b0
commit e2a4b6715f

View File

@ -1,7 +1,4 @@
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.services.ratbagd;
in
@ -10,15 +7,15 @@ in
options = {
services.ratbagd = {
enable = mkEnableOption "ratbagd for configuring gaming mice";
enable = lib.mkEnableOption "ratbagd for configuring gaming mice";
package = mkPackageOption pkgs "libratbag" { };
package = lib.mkPackageOption pkgs "libratbag" { };
};
};
###### implementation
config = mkIf cfg.enable {
config = lib.mkIf cfg.enable {
# Give users access to the "ratbagctl" tool
environment.systemPackages = [ cfg.package ];