Add an option to change vsftpd anonymos write umask.

This commit is contained in:
Michael Raskin 2014-02-11 01:23:59 +04:00
parent 30e1186a0c
commit 4c9c7f6ba4

View File

@ -91,6 +91,7 @@ let
${optionalString (pkgs.stdenv.system == "x86_64-linux") ''
seccomp_sandbox=NO
''}
anon_umask=${cfg.anonymousUmask}
'';
in
@ -139,6 +140,13 @@ in
description = "RSA certificate file.";
};
anonymousUmask = mkOption {
type = types.string;
default = "077";
example = "002";
description = "Anonymous write umask.";
};
} // (listToAttrs (catAttrs "nixosOption" optionDescription));
};