mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-21 12:38:41 +03:00
Add an option to change vsftpd anonymos write umask.
This commit is contained in:
parent
30e1186a0c
commit
4c9c7f6ba4
@ -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));
|
||||
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user