From 387be4f6c369eedfa37d7e5ba97a3fc354a84682 Mon Sep 17 00:00:00 2001 From: Felix Buehler Date: Fri, 30 Aug 2024 00:46:29 +0200 Subject: [PATCH] nixos/i18n.inputMethod.uim: remove `with lib;` --- nixos/modules/i18n/input-method/uim.nix | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/nixos/modules/i18n/input-method/uim.nix b/nixos/modules/i18n/input-method/uim.nix index 7517dead6b05..4edc121b2ccd 100644 --- a/nixos/modules/i18n/input-method/uim.nix +++ b/nixos/modules/i18n/input-method/uim.nix @@ -1,7 +1,4 @@ { config, pkgs, lib, ... }: - -with lib; - let imcfg = config.i18n.inputMethod; cfg = imcfg.uim; @@ -10,8 +7,8 @@ in options = { i18n.inputMethod.uim = { - toolbar = mkOption { - type = types.enum [ "gtk" "gtk3" "gtk-systray" "gtk3-systray" "qt5" ]; + toolbar = lib.mkOption { + type = lib.types.enum [ "gtk" "gtk3" "gtk-systray" "gtk3-systray" "qt5" ]; default = "gtk"; example = "gtk-systray"; description = '' @@ -22,7 +19,7 @@ in }; - config = mkIf (imcfg.enable && imcfg.type == "uim") { + config = lib.mkIf (imcfg.enable && imcfg.type == "uim") { i18n.inputMethod.package = pkgs.uim; environment.variables = {