nixos-config/modules/mailserver/users.nix
Simon Bruder 10b8d432d5
Relicense
This applies the REUSE specification to the repository, so the licensing
information can be tracked for every file individually.
2024-01-13 14:39:22 +01:00

17 lines
356 B
Nix

# 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;
}