From e8c85ce9ab346d93e01b781718b1c7f27592a705 Mon Sep 17 00:00:00 2001 From: Felix Buehler Date: Sun, 29 Dec 2024 21:50:40 +0100 Subject: [PATCH] nixos/services.saslauthd: remove `with lib;` --- nixos/modules/services/system/saslauthd.nix | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/nixos/modules/services/system/saslauthd.nix b/nixos/modules/services/system/saslauthd.nix index 17dae880a0ef..333cc5a4ba11 100644 --- a/nixos/modules/services/system/saslauthd.nix +++ b/nixos/modules/services/system/saslauthd.nix @@ -4,9 +4,6 @@ pkgs, ... }: - -with lib; - let cfg = config.services.saslauthd; @@ -21,18 +18,18 @@ in services.saslauthd = { - enable = mkEnableOption "saslauthd, the Cyrus SASL authentication daemon"; + enable = lib.mkEnableOption "saslauthd, the Cyrus SASL authentication daemon"; - package = mkPackageOption pkgs [ "cyrus_sasl" "bin" ] { }; + package = lib.mkPackageOption pkgs [ "cyrus_sasl" "bin" ] { }; - mechanism = mkOption { - type = types.str; + mechanism = lib.mkOption { + type = lib.types.str; default = "pam"; description = "Auth mechanism to use"; }; - config = mkOption { - type = types.lines; + config = lib.mkOption { + type = lib.types.lines; default = ""; description = "Configuration to use for Cyrus SASL authentication daemon."; }; @@ -43,7 +40,7 @@ in ###### implementation - config = mkIf cfg.enable { + config = lib.mkIf cfg.enable { systemd.services.saslauthd = { description = "Cyrus SASL authentication daemon";