2024-01-06 01:19:35 +01:00
|
|
|
# SPDX-FileCopyrightText: 2021-2023 Simon Bruder <simon@sbruder.de>
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
|
2023-05-31 13:11:12 +02:00
|
|
|
{ config, lib, ... }:
|
|
|
|
|
|
|
|
lib.mkIf config.sbruder.mailserver.enable {
|
|
|
|
users.users.vmail = {
|
|
|
|
uid = 10000;
|
|
|
|
group = "vmail";
|
|
|
|
home = config.sbruder.mailserver.storage;
|
|
|
|
createHome = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
users.groups.vmail.gid = 10000;
|
|
|
|
}
|