mirror of
https://gitlab.com/simple-nixos-mailserver/nixos-mailserver.git
synced 2024-12-28 20:10:34 +05:00
s/vmailUIDStart/vmailUID/g
The name vmailUIDStart is not consistent with how it is being used (as the UID of the vmail user).
This commit is contained in:
parent
50a3fa9edc
commit
cd85fd9d2f
@ -100,12 +100,13 @@ in
|
|||||||
default = {};
|
default = {};
|
||||||
};
|
};
|
||||||
|
|
||||||
vmailUIDStart = mkOption {
|
vmailUID = mkOption {
|
||||||
type = types.int;
|
type = types.int;
|
||||||
default = 5000;
|
default = 5000;
|
||||||
description = ''
|
description = ''
|
||||||
The unix UID where the loginAccounts are created. 5000 means that the first
|
The unix UID of the virtual mail user. Be mindful that if this is
|
||||||
user will get 5000, the second 5001, ...
|
changed, you will need to manually adjust the permissions of
|
||||||
|
mailDirectory.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ let
|
|||||||
vmail_user = {
|
vmail_user = {
|
||||||
name = vmailUserName;
|
name = vmailUserName;
|
||||||
isNormalUser = false;
|
isNormalUser = false;
|
||||||
uid = vmailUIDStart;
|
uid = vmailUID;
|
||||||
home = mailDirectory;
|
home = mailDirectory;
|
||||||
createHome = true;
|
createHome = true;
|
||||||
group = vmailGroupName;
|
group = vmailGroupName;
|
||||||
@ -46,7 +46,7 @@ in
|
|||||||
config = lib.mkIf enable {
|
config = lib.mkIf enable {
|
||||||
# set the vmail gid to a specific value
|
# set the vmail gid to a specific value
|
||||||
users.groups = {
|
users.groups = {
|
||||||
"${vmailGroupName}" = { gid = vmailUIDStart; };
|
"${vmailGroupName}" = { gid = vmailUID; };
|
||||||
};
|
};
|
||||||
|
|
||||||
# define all users
|
# define all users
|
||||||
|
@ -35,7 +35,7 @@ import <nixpkgs/nixos/tests/make-test.nix> {
|
|||||||
};
|
};
|
||||||
|
|
||||||
vmailGroupName = "vmail";
|
vmailGroupName = "vmail";
|
||||||
vmailUIDStart = 5000;
|
vmailUID = 5000;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user