about summary refs log tree commit diff
path: root/nixos/modules
diff options
context:
space:
mode:
authorFelix Buehler2024-08-24 22:05:43 +0200
committerFelix Buehler2024-08-30 23:00:48 +0200
commit9d570bce41f1f3344beecf94925df19c59d71ce9 (patch)
tree08e14399832751ea619b828804082b99633d50f3 /nixos/modules
parent4233be955da89cbcb18c24a3cdb5909e37a9c5d2 (diff)
nixos/services.evdevremapkeys: remove `with lib;`
Diffstat (limited to 'nixos/modules')
-rw-r--r--nixos/modules/services/misc/evdevremapkeys.nix8
1 files changed, 3 insertions, 5 deletions
diff --git a/nixos/modules/services/misc/evdevremapkeys.nix b/nixos/modules/services/misc/evdevremapkeys.nix
index e559dd89dc9f..754bce9f03d2 100644
--- a/nixos/modules/services/misc/evdevremapkeys.nix
+++ b/nixos/modules/services/misc/evdevremapkeys.nix
@@ -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"