0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 13:40:28 +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,
...
}:
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";