nixos/services.mail: remove with lib;
This commit is contained in:
parent
aa0f147937
commit
b75b87803a
@ -1,7 +1,4 @@
|
||||
{ config, options, lib, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
{
|
||||
|
||||
###### interface
|
||||
@ -10,8 +7,8 @@ with lib;
|
||||
|
||||
services.mail = {
|
||||
|
||||
sendmailSetuidWrapper = mkOption {
|
||||
type = types.nullOr options.security.wrappers.type.nestedTypes.elemType;
|
||||
sendmailSetuidWrapper = lib.mkOption {
|
||||
type = lib.types.nullOr options.security.wrappers.type.nestedTypes.elemType;
|
||||
default = null;
|
||||
internal = true;
|
||||
description = ''
|
||||
@ -25,7 +22,7 @@ with lib;
|
||||
|
||||
###### implementation
|
||||
|
||||
config = mkIf (config.services.mail.sendmailSetuidWrapper != null) {
|
||||
config = lib.mkIf (config.services.mail.sendmailSetuidWrapper != null) {
|
||||
|
||||
security.wrappers.sendmail = config.services.mail.sendmailSetuidWrapper;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user