nixos/services.evdevremapkeys: remove with lib;
This commit is contained in:
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"
|
||||
|
Loading…
Reference in New Issue
Block a user