0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-14 06:00:33 +03:00

nixos/services.saslauthd: remove with lib;

This commit is contained in:
Felix Buehler 2024-12-29 21:50:40 +01:00
parent 710d6186c1
commit e8c85ce9ab

View file

@ -4,9 +4,6 @@
pkgs, pkgs,
... ...
}: }:
with lib;
let let
cfg = config.services.saslauthd; cfg = config.services.saslauthd;
@ -21,18 +18,18 @@ in
services.saslauthd = { 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 { mechanism = lib.mkOption {
type = types.str; type = lib.types.str;
default = "pam"; default = "pam";
description = "Auth mechanism to use"; description = "Auth mechanism to use";
}; };
config = mkOption { config = lib.mkOption {
type = types.lines; type = lib.types.lines;
default = ""; default = "";
description = "Configuration to use for Cyrus SASL authentication daemon."; description = "Configuration to use for Cyrus SASL authentication daemon.";
}; };
@ -43,7 +40,7 @@ in
###### implementation ###### implementation
config = mkIf cfg.enable { config = lib.mkIf cfg.enable {
systemd.services.saslauthd = { systemd.services.saslauthd = {
description = "Cyrus SASL authentication daemon"; description = "Cyrus SASL authentication daemon";