Merge pull request #38 from eqyiel/rename-vmail-uid-start
s/vmailUIDStart/vmailUID/g
This commit is contained in:
commit
18a6af3a2a
|
@ -100,12 +100,13 @@ in
|
|||
default = {};
|
||||
};
|
||||
|
||||
vmailUIDStart = mkOption {
|
||||
vmailUID = mkOption {
|
||||
type = types.int;
|
||||
default = 5000;
|
||||
description = ''
|
||||
The unix UID where the loginAccounts are created. 5000 means that the first
|
||||
user will get 5000, the second 5001, ...
|
||||
The unix UID of the virtual mail user. Be mindful that if this is
|
||||
changed, you will need to manually adjust the permissions of
|
||||
mailDirectory.
|
||||
'';
|
||||
};
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ let
|
|||
vmail_user = {
|
||||
name = vmailUserName;
|
||||
isNormalUser = false;
|
||||
uid = vmailUIDStart;
|
||||
uid = vmailUID;
|
||||
home = mailDirectory;
|
||||
createHome = true;
|
||||
group = vmailGroupName;
|
||||
|
@ -46,7 +46,7 @@ in
|
|||
config = lib.mkIf enable {
|
||||
# set the vmail gid to a specific value
|
||||
users.groups = {
|
||||
"${vmailGroupName}" = { gid = vmailUIDStart; };
|
||||
"${vmailGroupName}" = { gid = vmailUID; };
|
||||
};
|
||||
|
||||
# define all users
|
||||
|
|
|
@ -35,7 +35,7 @@ import <nixpkgs/nixos/tests/make-test.nix> {
|
|||
};
|
||||
|
||||
vmailGroupName = "vmail";
|
||||
vmailUIDStart = 5000;
|
||||
vmailUID = 5000;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue