about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorFelix Buehler2024-08-24 22:05:47 +0200
committerFelix Buehler2024-08-30 23:00:53 +0200
commita11ac85d651cc2a6fca2937731eadd219facd61d (patch)
treeaee76cff44366327d063b2c977d7265d719d05ea /nixos
parent25e0bc25f6d49c3fe90b707688d572dc0eeb87c9 (diff)
nixos/services.logkeys: remove `with lib;`
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/misc/logkeys.nix11
1 files changed, 4 insertions, 7 deletions
diff --git a/nixos/modules/services/misc/logkeys.nix b/nixos/modules/services/misc/logkeys.nix
index 0fb4fa6cf8de..428ce626b715 100644
--- a/nixos/modules/services/misc/logkeys.nix
+++ b/nixos/modules/services/misc/logkeys.nix
@@ -1,22 +1,19 @@
 { config, lib, pkgs, ... }:
-
-with lib;
-
 let
   cfg = config.services.logkeys;
 in {
   options.services.logkeys = {
-    enable = mkEnableOption "logkeys, a keylogger service";
+    enable = lib.mkEnableOption "logkeys, a keylogger service";
 
-    device = mkOption {
+    device = lib.mkOption {
       description = "Use the given device as keyboard input event device instead of /dev/input/eventX default.";
       default = null;
-      type = types.nullOr types.str;
+      type = lib.types.nullOr lib.types.str;
       example = "/dev/input/event15";
     };
   };
 
-  config = mkIf cfg.enable {
+  config = lib.mkIf cfg.enable {
     systemd.services.logkeys = {
       description = "LogKeys Keylogger Daemon";
       wantedBy = [ "multi-user.target" ];