mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 13:40:28 +03:00
nixos/services.evdevremapkeys: remove with lib;
This commit is contained in:
parent
4233be955d
commit
9d570bce41
1 changed files with 3 additions and 5 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue