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:
parent
710d6186c1
commit
e8c85ce9ab
1 changed files with 7 additions and 10 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue