nixos-config/modules/mailserver/users.nix

17 lines
356 B
Nix
Raw Normal View History

# SPDX-FileCopyrightText: 2021-2023 Simon Bruder <simon@sbruder.de>
#
# SPDX-License-Identifier: AGPL-3.0-or-later
{ 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;
}