nixos-config/modules/mailserver/users.nix

13 lines
240 B
Nix
Raw Permalink Normal View History

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