nixos/services.evdevremapkeys: remove with lib;

This commit is contained in:
Felix Buehler
2024-08-30 23:00:48 +02:00
parent 4233be955d
commit 9d570bce41
@@ -1,6 +1,4 @@
{ config, lib, pkgs, ... }:
with lib;
let
format = pkgs.formats.yaml { };
cfg = config.services.evdevremapkeys;
@@ -8,9 +6,9 @@ let
in
{
options.services.evdevremapkeys = {
enable = mkEnableOption ''evdevremapkeys, a daemon to remap events on linux input devices'';
enable = lib.mkEnableOption ''evdevremapkeys, a daemon to remap events on linux input devices'';
settings = mkOption {
settings = lib.mkOption {
type = format.type;
default = { };
description = ''
@@ -19,7 +17,7 @@ in
};
};
config = mkIf cfg.enable {
config = lib.mkIf cfg.enable {
boot.kernelModules = [ "uinput" ];
services.udev.extraRules = ''
KERNEL=="uinput", MODE="0660", GROUP="input"