nixos/services.saslauthd: remove with lib;
This commit is contained in:
@@ -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";
|
||||||
|
|||||||
Reference in New Issue
Block a user