nixos/services.evdevremapkeys: remove with lib;
This commit is contained in:
parent
4233be955d
commit
9d570bce41
@ -1,6 +1,4 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
let
|
let
|
||||||
format = pkgs.formats.yaml { };
|
format = pkgs.formats.yaml { };
|
||||||
cfg = config.services.evdevremapkeys;
|
cfg = config.services.evdevremapkeys;
|
||||||
@ -8,9 +6,9 @@ let
|
|||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.services.evdevremapkeys = {
|
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;
|
type = format.type;
|
||||||
default = { };
|
default = { };
|
||||||
description = ''
|
description = ''
|
||||||
@ -19,7 +17,7 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
boot.kernelModules = [ "uinput" ];
|
boot.kernelModules = [ "uinput" ];
|
||||||
services.udev.extraRules = ''
|
services.udev.extraRules = ''
|
||||||
KERNEL=="uinput", MODE="0660", GROUP="input"
|
KERNEL=="uinput", MODE="0660", GROUP="input"
|
||||||
|
Loading…
Reference in New Issue
Block a user